Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
Assign specific brush to specific series
posted

I have a pie chart with 3 series; Series 'Dwell', Series 'Pause' and Series 'Remaining'. They are colored sequentially Green, Blue  and Gray, according to the BrushCollection called ChartBrushes in IG.xamDataChart.xaml. The chart looks like this:

pie chart 1

When Series 'Pause' has no data, then it doesn't show and Series 'Remaining' takes the second color, blue in this case. It looks like this:

pie chart 2

I need Series 'Remaining' to always use the gray brush. Likewise, I need Series 'Dwell' to always be green, and Series 'Pause' to always be blue. how can I accomplish this?