2 Replies Latest reply on Apr 20, 2010 3:56 PM by agorman_co

    Changing color of line segments in a LineSeries

    agorman_co Level 1

      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.

       

      Andy