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
3
// create data
4
var data = [
5
["Total Market", 232000],
6
["Prospects", 94480],
7
["Leads", 47390],
8
["Sales", 22181]
9
];
10
11
var chart = anychart.funnel(data);
12
13
// set the container id
14
chart.container("container");
15
16
// initiate drawing the chart
17
chart.draw();
18
});