Browse Source

Update sample

pull/38/merge
Masayuki Tanaka 11 years ago
parent
commit
0075fd5c7f
  1. 2
      htdocs/samples/axes_y2.html
  2. 12
      htdocs/samples/chart_bar_stacked.html
  3. 4
      htdocs/samples/data_load.html
  4. 3
      htdocs/samples/dount.html
  5. 11
      htdocs/samples/simple_multiple.html

2
htdocs/samples/axes_y2.html

@ -6,7 +6,7 @@
<div id="chart"></div>
<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>
var chart = c3.generate({
data: {

12
htdocs/samples/chart_bar_stacked.html

@ -23,12 +23,22 @@
axis: {
x: {
type: 'categorized'
}
},
// rotated: true
},
grid: {
y: {
lines: [{value:0}]
}
},
zoom: {
// enabled: true
},
subchart: {
// show: true
},
tooltip: {
// enabled: false
}
});

4
htdocs/samples/data_load.html

@ -17,6 +17,9 @@
},
zoom: {
enabled: true
},
transition: {
duration: 100
}
});
@ -82,7 +85,6 @@
chart.unload('data3');
}, 2250);
</script>
</body>
</html>

3
htdocs/samples/dount.html

@ -26,7 +26,8 @@
// ["versicolor", 40],
// ["virginica", 50],
],
type : 'dount',
type : 'donut',
// type : 'pie',
},
axis: {
x: {

11
htdocs/samples/simple_multiple.html

@ -6,7 +6,7 @@
<div id="chart"></div>
<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>
var chart = c3.generate({
data: {
@ -14,6 +14,15 @@
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
},
tooltip: {
// enabled: false
},
zoom: {
// enabled: true
},
subchart: {
// show: true
}
});
</script>

Loading…
Cancel
Save