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
// create pie chart
3
var chart = anychart.pie();
4
5
// set chart title
6
chart.title('Inside MLP');
7
8
// set chart data
9
chart.data([
10
{x: 'Matrix Multiplication', value: 385},
11
{x: 'Others (Dropout... etc.)', value: 400}
12
]);
13
14
// set container id for the chart
15
chart.container('container');
16
17
// initiate chart drawing
18
chart.draw();
19
});