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
15
1
anychart.onDocumentReady(function () {
2
var firstDataSet = anychart.data.set([
3
["Point A", 231],
4
["Point B", 131],
5
["Point C", 212],
6
["Point D", 94]
7
]);
8
var firstView = firstDataSet.mapAs();
9
var concatenatedView = firstView.concat([
10
["Point F", 150]
11
]); // concatenates of the view and the array
12
var chart = anychart.line(concatenatedView);
13
chart.container("container");
14
chart.draw();
15
});