Created
July 18, 2016 06:05
-
-
Save jasonish/5eb9169b2832376b5cb6518ec8bfed92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c3.generate({ | |
bindto: "#test-c3", | |
data: { | |
x: 'date', | |
columns: [ | |
["date"].concat(this.eventsOverTime.map((x:any) => { | |
return x.date; | |
})), | |
["Events"].concat(this.eventsOverTime.map((x:any) => { | |
return x.value; | |
})) | |
], | |
type: "area-spline", | |
}, | |
axis: { | |
x: { | |
type: 'timeseries', | |
tick: { | |
format: "%H:%M" | |
} | |
} | |
}, | |
subchart: { | |
show: true | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment