Here, we'll show how to send data to a Stacked chart using XMLList. For example, here we will build a Stacked Column 3D Chart using XMLList as data source. |
Before you go further, we recommend you to see the section "Your First Chart" , as we start off from the concepts explained in that page. |
We would follow the previous Array example and modify the code a bit. Here, we would bind FCData and FCParams attributes to XMLList objects. The code will look like given below: |
|
<?xml version="1.0" encoding="utf-8"?> // Create a XMLList object for chart data |
As you see in the above code, we passed data through a XMLList object named chartData. For this, we created the object with valid chart data. We also created another xmlList object, chartParams, to store the chart parameters and bind it to FCParams attribute. Now, if you run the above code you will get the following figure. |
![]() |