|
|
@ -6,7 +6,7 @@ |
|
|
|
<div id="chart"></div> |
|
|
|
<div id="chart"></div> |
|
|
|
|
|
|
|
|
|
|
|
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> |
|
|
|
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> |
|
|
|
<script src="/js/c3.min.js"></script> |
|
|
|
<script src="/js/c3.js"></script> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
var chart = c3.generate({ |
|
|
|
var chart = c3.generate({ |
|
|
|
data: { |
|
|
|
data: { |
|
|
@ -14,6 +14,15 @@ |
|
|
|
['data1', 30, 200, 100, 400, 150, 250], |
|
|
|
['data1', 30, 200, 100, 400, 150, 250], |
|
|
|
['data2', 50, 20, 10, 40, 15, 25] |
|
|
|
['data2', 50, 20, 10, 40, 15, 25] |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
tooltip: { |
|
|
|
|
|
|
|
// enabled: false |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
zoom: { |
|
|
|
|
|
|
|
// enabled: true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
subchart: { |
|
|
|
|
|
|
|
// show: true |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|