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.line([
3
{x: 0, value: 10},
4
{x: 1, value: 12},
5
{x: 2, value: 18},
6
{x: 3, value: 11},
7
{x: 4, value: 9}
8
]);
9
chart.xScale('linear');
10
11
var series = chart.getSeries(0);
12
series.error(1);
13
14
var error = series.error();
15
16
// Set error mode.
17
error.mode('both');
18
19
chart.title('Set error mode');
20
chart.container('container');
21
chart.draw();
22
});