Section Funnel Chart | ||||||||||||||||||||
In the previous example, we had shown how to create a streamlined funnel chart, i.e., chart whose data equals 100% when totaled. However, FusionWidgets XT also allows you to create non-streamlined charts, where height of each funnel segment depicts its value with respect to the entire funnel height. There is no filtering of data involved in this case. |
||||||||||||||||||||
An example | ||||||||||||||||||||
For a simple section funnel chart example, we'll plot the sales figures achieved by employees of a fictional company during the first 7 months of this year. The data can be rendered as under in tabular form: | ||||||||||||||||||||
|
||||||||||||||||||||
The above data when converted to XML/JSON will look as under: | ||||||||||||||||||||
<chart caption="Sales distribution by Employee" subCaption="Jan 07 - Jul 07" numberPrefix="$" isSliced="1" streamlinedData="0" isHollow="0"> { "chart": { "caption": "Sales distribution by Employee", "subcaption": "Jan 07 - Jul 07", "numberprefix": "$", "issliced": "1", "streamlineddata": "0", "ishollow": "0" }, "data": [ { "label": "Buchanan", "value": "20000" }, { "label": "Callahan", "value": "49000" }, { "label": "Davolio", "value": "63000" }, { "label": "Dodsworth", "value": "41000" }, { "label": "Fuller", "value": "74000" }, { "label": "King", "value": "49000" }, { "label": "Leverling", "value": "77000" }, { "label": "Peacock", "value": "54000" }, { "label": "Suyama", "value": "14000" } ] } |
||||||||||||||||||||
Here, we've:
When you see this chart, you'll get a result as under: |
||||||||||||||||||||
See it live! | ||||||||||||||||||||
As you can see above, the chart has now rendered each funnel slice with a common slant angle. The height of each funnel slice represents its value. Also, in this chart, since we've set isSliced='1' at chart level, all the funnel items remains sliced out when the chart renders. So, the funnel slices will not slice in or slice out on mouse click. |