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
16
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(anychart.data.set([
10
{x: "Point F", y: 150},
11
{x: "Point G", y: 50}
12
])); // concatenates of the view and the dataSet
13
var chart = anychart.line(concatenatedView);
14
chart.container("container");
15
chart.draw();
16
});