This section demonstrates the process of providing data to a chart using Model. |
|
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 easier by adding another component or class named FCChartData that accepts data from Array, XMLList, or Model, and converts the data into XML. |
Like the previous examples, we will create two Model objects, one for providing chart data and the other for providing chart parameters. |
<?xml version="1.0" encoding="utf-8"?> <!--Create the Model object as a data source for the chart parameters--> |
As you can see in the highlighted sections of the code:
|
Please refer to "FusionCharts and XML » Chart XML Reference" for more information on chart parameters and elements that can be used while providing data as Model. |
To know more about FCData and its attributes please go through FusionCharts Properties page under Chart API Reference section. |
Now execute the code to render the chart: |
![]() |