In this section we'll show you the method of creating a multi-series chart by providing data in form of XMLList. |
Before you continue, we recommend That you go through "Your First Chart" section, as we start off from the concepts explained in that section. |
We will modify the code which was created in the previous section. We'll bind the FCData and FCParams attributes to the XMLList objects. The code for this is given below: |
<?xml version="1.0" encoding="utf-8"?> // Create a XMLList object for chart data |
In the code, we have passed the data through a XMLList object named chartData. It is essential that the object be created in a valid format. We have also created another xmlList object named chartParams that stores the chart parameters and binds them to FCParams attribute. Now, if you run the code, you'll get the following chart: |
![]() |