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.