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 base width
13
chart.baseWidth("50%");
14
15
// set the container id
16
chart.container("container");
17
18
// initiate drawing the chart
19
chart.draw();
20
});