In this section, we will explain how to provide data to the chart using XMLList. |
|
Before you continue, we recommend that you go through the previous sections, as we start off from the concepts explained in those sections. |
Note: FusionCharts internally can accept only XML data (XML file or XML string). FusionCharts for Flex component makes things more comfortable by adding another component or class named FCChartData that accepts data from Array, XMLList, or Model. It internally converts the data into XML and finally passes the XML to the chart. |
Here, we will follow the previous Array example. We will modify the code and bind FCData and FCParams attributes to XMLList objects. The code for this is given below: |
<?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 in the highlighted portion of the above code:
|
Please refer to "FusionCharts and XML » Chart XML Reference" section to learn more about chart parameters and elements which can be used when providing data as XMLList. |
To know more about FCData and its attributes please go through FusionCharts Properties page under Chart API Reference section. |
The following chart will be rendered upon execution of the code: |
![]() |