Why pie chart the 9th's color is the same as the first one ?I want each of them is different from each other
1 Answer, 1 is accepted
0
Adrian
Telerik team
answered on 27 Oct 2016, 01:20 PM
Hello,
The 9th color is the same like the first one because the chart's theme has 8 different colors and when you have more than 8 slices in the pie the colors start repeating again from the first one. You can provide a different color by implementing chart:paletteItemForSeries:atIndex method of TKChartDelegate. Using the index you can return a palette item with a different color for the corresponding slice. Consider the code below:
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items