Browse Source

Add sample for interaction.enabled

pull/373/merge
Masayuki Tanaka 11 years ago
parent
commit
54e00ae4d7
  1. 6
      htdocs/index.html
  2. 25
      htdocs/samples/interaction_enabled.html

6
htdocs/index.html

@ -345,6 +345,12 @@
Select data Select data
</a> </a>
</div> </div>
<div class="col-md-4">
<h3>Disable Interaction</h3>
<a href="./samples/interaction_enabled.html">
Disable interaction
</a>
</div>
</div> </div>
</div> </div>
</div> </div>

25
htdocs/samples/interaction_enabled.html

@ -0,0 +1,25 @@
<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]
]
},
interaction: {
enabled: false
}
});
</script>
</body>
</html>
Loading…
Cancel
Save