bug in pie chart and how to change color combination

Apr 18, 2013 at 8:01 AM
Hello There,

First of all I would like to congratulate developers for there great work.

1) I guess its a bug, I am using pie chart in my app, once I select a area in pie chart its color will be changed to yellow, and same repeat for all area in pie chart. Even deselecting item will not change yellow(selection) color to normal color.

2) How we can change default colors of pie chart. Instead of blue, light blue etc. I would like to use different color.

3) How to handle click event on pie chart for a area in chart.

May 5, 2013 at 8:07 PM
Hi Shyam,

sorry for my late answer, I had to finish the BETA release of the charts :-)

Regarding your questions:

1) The bug in pie chart is fixed.

2) In the new release you can change the color palette for the charts. You can fnd a sample in the test applications. You define your custom ResourceDictionaryCollection with all the color values and assign it to the chart in property "Palette".

3) To handle a click in the pie chart I would recommend to bind the property "SelectedItem" of the pie chart to your ViewModel and then you can react on changes of the SelectedItem (e.g. by switching to a different page). Currently there is no click event. If my recommendation does not help you please describe your use case and I could find a possible implementation in the charts.