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