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
// set the container id
13
chart.container("container");
14
15
// initiate drawing the chart
16
chart.draw();
17
});