Could someone please look at my post below and provide me some help?

Thanks.
--- In [email protected], "Mehul Doshi" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> 
> I have a few questions on how I should go about achieving 
something 
> using Flex Charting.
> 
> I have a Java servlet/controller that will return XML data. The 
data 
> will consist of multiple datapoints for multiple companies. Let's 
> assume that the xml follows the below structure:
> 
> <company1 name="ABC">
>    <datapoint date="Jan">50</datapoint>
>    <datapoint date="Feb">70</datapoint>
> </company1>
> <company2 name="DEF">
>    <datapoint date="Jan">70</datapoint>
>    <datapoint date="Feb">50</datapoint>
> </company2>
> 
> Using this XML, I need to programatically (using 
> Javascript/Actionscript) create a chart with multiple LineSeries 
and 
> set the dataprovider for each. 
> 
> My questions are:
> 
> 1. How do I obtain the XML data? I'm currently using 
XMLHttpRequest 
> to get it...any better approach? Do I need to use the DataServices 
> feature of Flex?
> 2. Using my current approach, I'm not sure how I can set the 
> dataprovider (and xfield,yfield) for each LineSeries (each 
company)?
> 
> Thanks,
> Mehul.
>


Reply via email to