Funnel chart
Funnel charts are often used to represent stages in a sales process and show the amount of potential revenue for each stage. By default, the height of a slice represents it's value. However you might want the area of a slice to represent value. In this case you should add <code>"valueRepresents":"area"</code> property to the chart's config. The height and width of a neck is controlled by <code>neckWidth</code> and <code>neckHeight</code> properties. <h2>Funnel chart with patterns</h2> Click on PATTERNS theme above the chart - you will see that our Funnel chart supports patterns. There are several pre-built patterns in our package or you can easily build your own fancy patterns and use them with our charts.
by Rohit Bisht
HTML
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/funnel.js"></script>
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<div id="chartdiv"></div>
CSS
#chartdiv {
width: 100px;
height: 200px;
}
JavaScript
var chart = AmCharts.makeChart( "chartdiv", {
"type": "funnel",
"theme": "light",
"dataProvider": [ {
"title": "Website visits",
"value": 300
}, {
"title": "Downloads",
"value": 123
}, {
"title": "Requested prices",
"value": 98
}, {
"title": "Contacted",
"value": 72
}, {
"title": "Purchased",
"value": 35
}, {
"title": "Asked for support",
"value": 25
}, {
"title": "Purchased more",
"value": 18
} ],
"titleField": "title",
"marginRight": 0,
"marginLeft": 0,
"labelPosition": "center",
"funnelAlpha": 0,
"valueField": "value",
"startX": 0,
"neckWidth": "40%",
"startAlpha": 0,
"outlineThickness": 1,
"neckHeight": "100%",
"balloonText": "[[title]]:<b>[[value]]</b>",
"export": {
"enabled": false
}
} );