mirror of https://github.com/masayuki0812/c3.git
Quite good looking graph derived from d3.js
http://c3js.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
530 B
19 lines
530 B
7 years ago
|
var chart = c3.generate({
|
||
|
data: {
|
||
|
x: 'x',
|
||
|
columns: [
|
||
|
['x', '2013-01-01', '2013-01-02', '2013-01-03', '2013-01-04', '2013-01-05', '2013-01-06', '2013-01-07', '2013-01-08', '2013-01-09', '2013-01-10', '2013-01-11', '2013-01-12'],
|
||
|
['sample', 30, 200, 100, 400, 150, 250, 30, 200, 100, 400, 150, 250]
|
||
|
]
|
||
|
},
|
||
|
axis: {
|
||
|
x: {
|
||
|
type: 'timeseries',
|
||
|
tick: {
|
||
|
count: 4,
|
||
|
format: '%Y-%m-%d'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|