Heh, maybe he'll see this before MAX :)

Anyways, here's my question - I've done this before, but I can't
remember how nor find the code. I've got a data set like the
following:

Month.....Dollar.....Category.....Brand
..Jan.........500..........IT.............Blue
..Feb.........700..........JO.............Red
..Mar.........600..........AC.............Blue
..Jan.........100..........IT.............Green
..Feb.........200..........JO.............Red
..Mar.........300..........AC.............Blue

ok so, Month will be my x-axis. Dollar will be my y-axis, tallied up.
I want the entire LineChart to filter on Category (assuming I'll just
need to sort this based on altering the dataProvider itself)...but my
problem is I need a LineSeries for each Brand.

So my first guess was....

<mx:series>
..<mx:Array>
....<mx:Repeater dataProvider={uniqueBrandList}>
......<mx:LineSeries .....>
....</mx:Repeater>
..</mx:Array>
</mx:series>

Which does give me the lines I need, but I need some way to have a
LineSeries only show data where brand=uniqueBrandList.selectedItem.
What's the filter mechanism for a LineSeries besides the yField? Is
there some trick in that field or is there a property/function I'm
missing on how I can only show data where Brand=X? I thought "hey, use
filters" but that's the Effects, not for data :)

Any help would be nice....
-Jon Miranda


--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

Reply via email to