Here, we'll show how to send data to a Stacked chart using XML String. For example, here we will build a Stacked Column 3D Chart using XML String 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 will be continuing 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 with xml tags |
As you see in the above code, we passed data through a XML String object named xmlData. For this, we created the object with valid chart data. Now, if you run the above code you will get the following figure. |
![]() |