Applying specific colors to pie slices
I have a requirement to associate a specific color to a pie slice. This information is retrieved from the server along with the charting data.
I have already tried setting colorSet to the list of colors. This works most of the time, except if one of the slices have a '0' value associated with it. Using this example http://dev.sencha.com/deploy/touch-c.../examples/Pie/ as reference, lets say here is what needs to be plotted -
Month, Value, Color
Jan, 10, #aaaaaa
Feb, 20, #bbbbbb
Mar, 0, #cccccc
Apr, 30, #dddddd
colorSet = [#aaaaaa, #bbbbbb, #cccccc, #dddddd]
Since value=0 for Mar, Apr getting filled with #cccccc.
Is there a way to decide which color to select at the time of drawing rather than when the object is created? Looking at the piechart code, it would be good to have a 'getPieSliceColor' method that I could override (similar to the getLegendColor method).