In this section, we'll show you how to create a stacked chart by passing data through 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 used in the previous example. In the code, we bind FCData and FCParams attributes to XMLList objects (see below). |
<?xml version="1.0" encoding="utf-8"?> // Create a XMLList object for chart data ]]> |
In the code, we passed data through a XMLList object named chartData. It is essential that data in appropriate format be provided to the object. We have also created another xmlList object named chartParams for storing the chart parameters and binding them to FCParams attribute. The following chart will be displayed when the chart is executed: |
![]() |