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 dataSet = anychart.data.set([
3
['Point A', 231],
4
['Point B', 131],
5
['Point C', 212],
6
['Point D', 94]
7
]);
8
9
var view = dataSet.mapAs();
10
11
// Concatenates of the view and the dataSet.
12
var concatenatedView = view.concat(anychart.data.set([
13
{x: 'Point F', y: 150},
14
{x: 'Point G', y: 50}
15
]));
16
17
var chart = anychart.line(concatenatedView);
18
chart.title('Concatenates of the view and the dataSet');
19
chart.container('container');
20
chart.draw();
21
});