Here, we'll show how to send data to a Multi-series chart using XML String. For example, here we will build a Multi-series Column 2D Chart using XML String as a 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 continue with the first chart that we have created in the "Your First Chart" section. But instead of providing the XML file's path, we would pass the XML hard-coded in a String variable in Flex. The code for this is given below. |
<?xml version="1.0" encoding="utf-8"?> // Create a string with valid chart data and xml tags ]]> |
As you see in the above code, we passed data through a XML String object named xmlData. For this, we created the string with valid chart data. Now, if you run the above code you will get the following figure. |
![]() |