In this section we'll explain the method of creating a stacked chart using Array as a medium for providing data. |
Before you continue, we recommend that you go through "Your First Chart" section, as we start off from the concepts explained in that section. |
In the following code chart data is provided through an Array object: |
<?xml version="1.0" encoding="utf-8"?> // Create an ArrayCollection object for chart data |
In the code, we have passed data through an ArrayCollection object named chartData. It is essential that only data in appropriate format be provided to the object. We have also created another ArrayCollection object named chartParams for storing chart parameters and binding them to FCParams attribute. The following chart will be produced upon execution of the code: |
![]() |