Retrieve data from chart
To help Harry better analyze the audit report, we decided to provide him with the functionality to sort the columns within the chart. One of the ways to provide this feature is to store the XMLs in sorted order. However, this method would be laborious as there needs to be three sets of data XML for each chart, one sorted ascending, the next sorted descending, and then the original one. Thus, we decided to make the sorting function dynamic and not create additional sets of XMLs.
FusionCharts allows us to fetch the data from the chart using any of the data-getting functions such as getXMLData, getJSONData
, and getDataAsCSV
.