Here, we'll show how to send data to a Multi-series chart using Array. For example, here we will build a Multi-series Column 2D 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 it 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. Moreover, we 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. |
![]() |