I've seen many examples of changing the color od a bar in a bar graph based on the value of the data. This can be done with a custom fillFunction or by using a custom renderer class. The flex docs show custom fillFunction code in their LineSeries entry, but I suspect this just affects the ChartItem and not the line segment: http://livedocs.adobe.com/flex/3/langref/mx/charts/series/LineSeries.html#fillFunction
I am begining to think that creating a custom lineSegmentRenderer is the answer. Is this the right approach? Has anyone seen some example code for creating a custom lineSegmentRenderer?
Any pointers would be very much appriciated.
Yep, that's the way to go. It's not that complex. An example is in the Flex source itself under $FLEX_HOME/frameworks/projects/datavisualization/src/mx/charts/renderers/LineRenderer.as .
Thanks! Once I started googling lineSegmentRenderer I started finding all kinds of examples.