Here, we'll show how to send data to a Stacked chart using Array. For example, here we will build a Stacked Column 3D Chart using Array 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 again use the first example. Here we will send data to the chart using Array. The code is given below. |
|
<?xml version="1.0" encoding="utf-8"?> // Create an ArrayCollection object for chart data |
As you see in the above code, we passed data through an ArrayCollection object named chartData. For this, we created the object with valid chart data. Like Single series and Multi-series charts, here we also created another ArrayCollection 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. |
![]() |