Hi, Not tested at all, but I would in my fill function:
1/ get the original item: var data:Object = item.item; 2/ get the value in the field I'm interested in: var value:Object = data.myfield; 3/ do whatever coloring I want to do with it. Is that what you are doing and is failing? -- Christophe ILOG Elixir http://flex.ilog.com picklzzz wrote: > Hello, > > I'm attempting to write a fillFunction for use with a plotChart that > color codes dots based upon the value on a third field. > > For example, a plot chart of individual's heights (xField) verus > weight (yField) color coded by ethnicity. > > The examples provided in the Flex documentation use values of the > xField or yField to control color selection. How does one use the > value of a third variable to control color selection? > > I have created something that "kind of" works, but I have an > AdvancedDataGrid displaying the data and when I sort in the > AdvancedDataGrid, it messes up the index I use to color the dots. > > If anyone else has worked through this, I'd appreciate any insights > you can offer. > > > > -- > 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 > > > > >

