Change donut flavor color when slice is selected


#1

This is for Xamarin. When you select a slice on a donut chart, it changes color when it slides out. How can I change this slid out color? I can only seem to figure out how to change the colors when the slices are all unselected (by using the FlavourColors field in Style). Thanks.


#2

Hi Architekt,

As well as a Style property, a pie/donut series object has a SelectedStyle property which manages the appearance of the slices when they are selected.

So you can set series.SelectedStyle.FlavourColors to change the colors when the slices are selected.

Kind regards,

Alison