You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lightweight calendar heatmap Vuejs component built on SVG, inspired by github's contribution calendar graph. With vertical mode, tooltip powered by [v-tooltip](https://github.com/Akryum/v-tooltip).
8
18
9
-
| keys | Type | Required | Exemple |
10
-
|---|---|---|---|
11
-
| values `values`| Array of objects with `date` and `count` keys. `date` values can be a date parseable string, a millisecond timestamp, or a Date object. `count` value should be a number. | true |`:values="[{ date: '2018-9-22', count: 6 }, ...]"`|
12
-
| endDate `end-date`| Can be a date parseable string, a millisecond timestamp, or a Date object. The calendar will start automatically one year before this date. | true |`endDate="2018-9-22"`|
13
-
| colorRange `color-range` | A Array of 5 strings which represents the colors of the progression. The color at `colorRange[0]` will always represent the values for a `count: 0`. The others are automatically distributed over the maximum value of count, unless you specify `max` props. | false. Default value is equal to the example | `:range-color="['ebedf0', '#ebedf0', '#c0ddf9', '#73b3f3', '#3886e1', '#17459e']"`
14
-
| max `max` | Any number which should be the max color | false | `:max="10"`
15
-
| tooltip `tooltip` | Boolean for enabble/disable tooltip on square hover. `true` by default | false | `:tooltip="false"`
16
-
| tooltipUnit `tooltip-unit` | String representing heatmap's unit of measure. His value is `"contributions"` by default. | false | `tooltip-unit="stars"`
Array of objects with `date` and `count` keys. `date` values can be a date parseable string, a millisecond timestamp, or a Date object. `count` value should be a number.
Can be a date parseable string, a millisecond timestamp, or a Date object. The calendar will start automatically one year before this date.
61
+
``` html
62
+
<vue-calendar-heatmap endDate="2018-9-22".../>
63
+
```
64
+
65
+
### colorRange - `color-range`
66
+
A Array of 5 strings which represents the colors of the progression. The color at `colorRange[0]` will always represent the values for a `count:0`. The others are automatically distributed over the maximum value of count, unless you specify `max` props. Default value is equal to the example.
0 commit comments