This is a migrated thread and some comments may be shown as answers.

Chart Color Roration Bug

3 Answers 167 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 09 Oct 2014, 04:27 PM
OK, I'm using pie chart, and did not define any colors for each of the series at first. It seems the Chart uses 6 default colors and rotates them. The problem came where there are 7 slices on one of my pie charts. So... The 7th slice is the same color as the first slice, since it's rotating, and these two slices now look like a single slice with the same color.

I fixed it myself by manually assign the same 6 color rotation to each series, check for the last color and ensure it's not the same as the first, then advance to the next color.

Nether less, this should be fixed.

Aaron

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 13 Oct 2014, 07:09 AM
Hello Aaron,

This is not a but. We have only 6 colors for our series in seriesColor array. If you need more colors you need to override this array with your colors array.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Aaron
Top achievements
Rank 1
answered on 14 Oct 2014, 07:04 PM
Hi Hristo:

I understand we can add in our own colors, the issue here is in pie chart mode, two colors can be blended together if the pie chart has 7 slices. I've attached an example image. This shouldn't happen for the default chart mode without defining custom images, as this is very inconvenient. 
0
Hristo Germanov
Telerik team
answered on 15 Oct 2014, 06:56 AM
Hi Aaron,

Yes, you are right. As I told you in my previous post the chart have 6 series colors for this theme. After 6th item the chart will repeat all colors from the beginning of the seriesColor array. If you want to have unique colors you need to override this array with more colors.

We will try to add more colors in the Chart themes for our future releases.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Aaron
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Aaron
Top achievements
Rank 1
Share this question
or