[#11551] - Pie Chart max slices bug

Category:
Bug report
Priority:
Urgent
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

When creating a pie chart, set 5 as the max slices to show and setting the colors with my own custom class I get an IndexOutOfBoundsExcepion. Now, we removed the customizer and tried a bunch of scenarios.

1.) Max 2 slices and 4 sections of data - it works as it should. 2 slices and 1 other.
2.) Max 3 slices and 5 sections of data - fails, does not group the last 2 slices into "other". (With my customizer this stills works since I have the pie chart six colors, and it can assign them all.)
3.) Max 4 slices and 6 sections of data - ""
4.) Max 5 slices and 7 section of data (our issue) - fails, and tries to assign a color to the key, but there are only 6 colors in the list.
5.) Test with more slices and more data, all failing.

I have attached the design of the pie chart, error and my custom class.

AttachmentSize
File piechartcustomizercustomcolours.java1.64 KB
v6.6.0
Charts
JeanBotha's picture
Joined: Jan 9 2019 - 2:28am
Last seen: 2 weeks 8 hours ago

1 Comment:

#1
AttachmentSize
Image icon pie_chart_design.png1.88 MB
Image icon pie_chart_error.png1.58 MB
Feedback
randomness