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.scatter();
3
4
var series = chart.line([
5
{x: 1.2, value: 2},
6
{x: 2.3, value: 6},
7
{x: 3.4, value: 4},
8
{x: 4.1, value: 8}
9
]);
10
11
// Get state.
12
var state = series.normal();
13
14
state.stroke('#4CAF50');
15
16
chart.title('Get and modify normal state');
17
chart.container('container');
18
chart.draw();
19
});