Need help with Chart

403
2
12-17-2010 02:48 PM
ZahidChaudhry
Occasional Contributor III
I am querying data from map service to create chart, i want to create a line chart but i don't know how many lines i will need because it depends on how many stations a user will select... for example user might select st1 only or st1 and st2...
I am looking for line chart....date is x-axis and temp is y axis field...


[ATTACH=CONFIG]3938[/ATTACH]
Tags (2)
0 Kudos
2 Replies
ValentinaBoycheva
New Contributor III
From a regular non-spatial webservice, I would bring read the results as XMLList, then traverse it and build an arraycollection of the data series, which will be made a dataprovider for the graph.

If you are reading results from map service, then you have to summarize the table by station and again build an arraycollection. The station names can be kept in a dictionary.

This example shows how to aggregate two data series into one array (mySeries) and feed it to the chart and legend.
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_intro_7.html

Hope this helps.
0 Kudos
ZahidChaudhry
Occasional Contributor III
Thanks..I used same logic but different approach and it is working...
0 Kudos