HTMLcopy
1
<button onclick="chart.column([Math.random(), Math.random(), Math.random(), Math.random()]);">Apply changes (add series)</button>
2
<button onclick="autoRedraw();">Draw changes on the chart</button>
3
<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
var chart;
2
anychart.onDocumentReady(function () {
3
chart = anychart.column3d([0.1, 0.3, 0.2, 0.4]);
4
chart.title('Disable redrawing of the chart after the changes. Use the buttons to apply the changes and draw them');
5
chart.legend(true);
6
chart.width('100%').height('95%');
7
chart.container('container');
8
chart.draw();
9
10
// Disable chart redrawing.
11
chart.autoRedraw(false);
12
});
13
14
function autoRedraw() {
15
16
// Enable chart redrawing.
17
chart.autoRedraw(true);
18
}