Browse Source

Add sample for zoom

pull/1/head
Masayuki Tanaka 11 years ago
parent
commit
0e1898d8c0
  1. 27
      htdocs/samples/simple_zoom.html

27
htdocs/samples/simple_zoom.html

@ -0,0 +1,27 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/c3.css">
</head>
<body>
<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>
var chart = c3.generate({
bindto: '#chart',
zoom: {
enabled: true
},
data: {
columns: [
['sample', 30, 200, 100, 400, 150, 250]
]
},
subchart: {
show: true
}
});
</script>
</body>
</html>
Loading…
Cancel
Save