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
{x: "Physical", value: 115},
4
{x: "Data Link", value: 129},
5
{x: "Network", value: 165},
6
{x: "Transport", value: 125},
7
{x: "Session", value: 123},
8
{x: "Presentation", value: 135},
9
{x: "Application", value: 230}
10
]);
11
12
var point = chart.getPoint(1);
13
// Enables hover on point.
14
point.hovered(true);
15
16
chart.container("container");
17
chart.draw();
18
});