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
// adjust the funnels neck
14
chart.neckWidth("20%");
15
chart.neckHeight("35%");
16
17
// set the container id
18
chart.container("container");
19
20
// initiate drawing the chart
21
chart.draw();
22
});