HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.column();
3
chart.column([5, 8, 4, 6]);
4
chart.column([6, 2, 5, 3]);
5
6
var interactivity = chart.interactivity();
7
8
// Set selection mode for single selection.
9
interactivity.selectionMode('single-select');
10
11
chart.title('Set selection mode');
12
chart.container('container');
13
chart.draw();
14
});