Generating Pareto Chart Data for FusionCharts

As soon as I read about Pareto Charts on FusionCharts blog and how it uses cumulative percentage on a dual-y axes graph to allow users to summarize data into segments, I realized that a simple script to generate the FusionCharts XML would help users generate such graphs.

For those who do not know what is FusionCharts, it is simply something that can convert your boring tables of data into sexy animated charts.

We have a simple linear column of data. And we need to generate the last column, which is the cumulative percentage of the entire series of data.

Label

Existing Data

Generated Column

Item 1

400000

40%

Item 2

250000

25%

Item 3

150000

15%

Item 4

100000

10%

Item 5

50000

5%

Item 6

50000

5%

Summation

1000000

100%

If you have your data, convert it to CSV ((Comma Separated Values)) and use this script to generate the XML to render FusionCharts Dual Y-Axis Combination Chart.