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.
14 lines
399 B
14 lines
399 B
var chart = c3.generate({ |
|
data: { |
|
columns: [ |
|
['data1', 300, 350, 300, 0, 0, 120], |
|
['data2', 130, 100, 140, 200, 150, 50] |
|
], |
|
types: { |
|
data1: 'area-spline', |
|
data2: 'area-spline' |
|
// 'line', 'spline', 'step', 'area', 'area-step' are also available to stack |
|
}, |
|
groups: [['data1', 'data2']] |
|
} |
|
});
|
|
|