Hi,

read the php generated xml using httpService and using the
resultEvent, assign the data to the chart.
something like this:

<mx:HTTPService id="chartService"
        url="http://myhost/myroot/chartData.xml";
        result="resultHandler(event)"
        />

under the script tag write

<mx:Script>
                <![CDATA[

                        import mx.rpc.events.ResultEvent
                                                [Bindable]
                        private var chartDataProvider:ArrayCollection = new 
ArrayCollection
();
                        private function resultHandler(event:ResultEvent):void
                        {
                                chartDataProvider = event.result.node as 
ArrayCollection;
                        }
                ]]>
        </mx:Script>

assign chartDataProvider as dataprovide to your chart.

Hope this would be helpful.

Thanks,
Shaleen Jain
http://shaleenjain.blogspot.com


On Jan 10, 6:24 am, Wirawan Naga <[email protected]> wrote:
> Can anybody teach me how to make multiple graph with the data came
> from external XML for example linegraph.xml . For example user need 3
> graph and php generate XML for 3 graph in one file and the flex read
> and display the chart. So how can i do this because every time i
> search in internet about it, they will give the data that already
> [Binding] and not came from the external XML. The question is how the
> XML format that php to create it so that flex can read in
> dataprovider . Can anybody teach or give me idea?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to