Search code examples
ioschartsshinobi

The color of a selected slice in a chart


i’ve been working with the ShinobiChart trial version and I would like to know if there is a way to disable the highlight effect when you select a slice of the chart and it changes the color.

I readed the documentation and i changed the colors in the flavourColors array, i even changed to NO the value on showCrust.

pieSeries.style.showCrust = NO;

[[pieSeries style] setFlavourColors:[NSMutableArray arrayWithObjects: blue, green, yellow, pink, purple, gray, red, nil]];

There are two pictures about the hightlight effect i'm talking about.

color-1

color-2

Thanks for any help!


Solution

  • In addition to the style property on the SChartPieSeries object, there is also a selectedStyle. These are both of the same type - so you'll find the highlighted colours in the flavourColors array in the selectedStyle object.

    Hope that helps.