Browse Source

Add sample for subchart

pull/373/merge
Masayuki Tanaka 11 years ago
parent
commit
8052bbeff1
  1. 8
      htdocs/index.html
  2. 24
      htdocs/samples/subchart.html

8
htdocs/index.html

@ -339,12 +339,20 @@
Zoom with reduction
</a>
</div>
<div class="col-md-4">
<h3>Subchart</h3>
<a href="./samples/subchart.html">
Show subchart
</a>
</div>
<div class="col-md-4">
<h3>Selection</h3>
<a href="./samples/selection.html">
Select data
</a>
</div>
</div>
<div class="row">
<div class="col-md-4">
<h3>Disable Interaction</h3>
<a href="./samples/interaction_enabled.html">

24
htdocs/samples/subchart.html

@ -0,0 +1,24 @@
<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.js"></script>
<script>
var chart = c3.generate({
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
],
},
subchart: {
show: true
}
});
</script>
</body>
</html>
Loading…
Cancel
Save