Skip to content

Commit

Permalink
Bump version to 0.1.5
Browse files Browse the repository at this point in the history
Add example to README.md
  • Loading branch information
fanthos committed Apr 24, 2018
1 parent 95c7ab6 commit e8a37fd
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,51 @@
# chartjs-chart-timeline

Timeline chart library for Chart.js.
```javascript
"type": "timeline",
"options": {
"colorFunction": function(text, data, dataset, index) {
return Color('black');
},
"showText": true,
"textPadding": 4,
},
"data": {
"labels": [
"Cool Graph",
"heater1"
],
"datasets": [
{
"data": [
[
"2018-01-22T16:00:00.000Z",
"2018-01-23T05:40:44.626Z",
"Unknown"
]
]
},
{
"data": [
[
"2018-01-22T16:00:00.000Z",
"2018-01-23T04:57:43.736Z",
"On"
],
[
"2018-01-23T04:57:43.736Z",
"2018-01-23T04:57:55.437Z",
"Off"
],
[
"2018-01-23T04:57:55.437Z",
"2018-01-23T05:40:44.626Z",
"On"
]
]
}
]
},
```

Usage: https://github.com/fanthos/chartjs-chart-timeline/wiki
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chartjs-chart-timeline",
"version": "0.1.4",
"version": "0.1.5",
"description": "timeline chart type for chart.js",
"main": "timeline.js",
"scripts": {
Expand Down

0 comments on commit e8a37fd

Please sign in to comment.