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 array.
12
var concatenatedView = view.concat([
13
['Point F', 150]
14
]);
15
16
var chart = anychart.line(concatenatedView);
17
chart.title('Concatenates of the view and the array');
18
chart.container('container');
19
chart.draw();
20
});