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
4
// Set data.
5
dataSet.data([
6
[1, 13],
7
[13, 23],
8
[17, 33],
9
[21, 43]
10
]);
11
12
var chart = anychart.pie(dataSet);
13
chart.title('Set data as an array of arrays');
14
chart.container('container');
15
chart.draw();
16
});