In this section, we will discuss how to provide data to the chart using XMLList. |
|
Before you go further, we recommend you to go through the previous pages, as we start off from the concepts explained in those pages. |
Note that FusionCharts internally can accept only XML data (XML file or XML string). FusionCharts for Flex component makes this limitation more flexible for Flex developers. It adds another component or class named FCChartData to accept data from Array, XMLList or Model. It internally converts the data into XML and finally passes the XML to the chart. |
We would follow the previous Array example and modify the code a bit. Here, we would bind FCData and FCParams attributes to XMLList objects. Let's see how: |
<?xml version="1.0" encoding="utf-8"?> //Create a xmlList object for chart data //Create a xmlList object for chart parameters </main>; |
As you can see above:
|
Please refer to "FusionCharts and XML » Chart XML Reference" section to know more on how to use parameters and elements from FusionCharts XML while providing data as XMLList. |
To know more about FCData and its attributes please go through the Class Structure Properties page under API Reference. |
The chart renderd would be thw same as the previous ones. |
![]() |