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.
32 lines
610 B
32 lines
610 B
var chart = c3.generate({ |
|
data: { |
|
x: 'x', |
|
columns: [ |
|
['x', 30, 50, 100, 230, 300, 310], |
|
['data1', 30, 200, 100, 400, 150, 250], |
|
['data2', 130, 300, 200, 300, 250, 450] |
|
] |
|
} |
|
}); |
|
|
|
setTimeout(function () { |
|
chart.load({ |
|
columns: [ |
|
['data1', 100, 250, 150, 200, 100, 350] |
|
] |
|
}); |
|
}, 1000); |
|
|
|
setTimeout(function () { |
|
chart.load({ |
|
columns: [ |
|
['data3', 80, 150, 100, 180, 80, 150] |
|
] |
|
}); |
|
}, 1500); |
|
|
|
setTimeout(function () { |
|
chart.unload({ |
|
ids: 'data2' |
|
}); |
|
}, 2000);
|
|
|