In this section we will show you how to build a Combination chart using XML String. For example, here we will build a 2D Single Y Combination 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 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 with xml tags ]]> |
Now, if you run the code, you will see the following figure. |
|
![]() |