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
chart.connectorStroke({
14
// set thickness of the connectors
15
thickness: 2,
16
// set color of the connectors
17
color: "#444",
18
// set dashed connectors. Dashes are 4px and gaps are 2px
19
dash: "4 2"
20
});
21
22
// set the container id
23
chart.container("container");
24
25
// initiate drawing the chart
26
chart.draw();
27
});