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 chart = anychart.pyramid();
3
4
// Set data.
5
chart.data('Physical|175 DataLink|165 Network|155 Transport|145 Session|135 Presentation|125 Application|400', {
6
'rowsSeparator': ' ',
7
columnsSeparator: '|'
8
});
9
10
chart.labels({position: 'inside'});
11
chart.title('Set data parameters as CSV');
12
chart.container('container');
13
chart.draw();
14
});