Change it to a different one. (See below) For example:
change dataProvider (via AS3) for summaryChart to "{model.marketSummary}"
add a ColumnSeries where yField equals "mktQTY" and categoryField
equals "mktLabel"
Thanks Ely! Also, while I've got you...
Any suggestion on how to drag a column as a way to select a group of
data to drop?
Are there any plans for additional chart types in the future? Radar
Chart?
Martin
<mx:ColumnChart id="summaryChart" dataProvider="{model.scoreSummary}"
showDataTips="true"
width="100%" height="45%" axisTitleStyle="axisStyle" >
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{model.scoreSummary}"
categoryField="scrLabel" />
</mx:horizontalAxis>
<mx:series>
<mx:Array>
<mx:ColumnSeries displayName="Leads"
yField="scrQTY" />
</mx:Array>
</mx:series>
</mx:ColumnChart>
--- In [email protected], "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
>
> What do you mean by change the dataProvider? Modify it? Or change to a
> different one?
>
>
> And if you can give an example of how you're setting the series in the
> first place, I can give help adding a new one.
>
> Ely.
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of flexabledev
> Sent: Monday, April 17, 2006 6:38 PM
> To: [email protected]
> Subject: [flexcoders] [Flex 2b2] Changing a Chart's dataProvider at
> runtime?
>
> Can someone give me a real quick example (Flex 2 B2 please) on how to
> change the dataProvider and adding a series to a Chart at runtime? It
> seems to have changed from Flex 1.5 and other than changing the yField
> of series for an existing dataProvider, I can't find a good example in
> the docs. Thanks in advance...
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/