Trying to add more than 4 series results in this error:
colorSeries.push is not a function ; Zone: <root> ; Task: null ; Value: TypeError: colorSeries.push is not a function
if (colorSeries.length < len) {
var diff = len - colorSeries.length;
for (var i = 0; i < diff; i++) {
colorSeries.push(colorSeries[i]); // heres where it fails
}
}
adding more than 4 colors in my colors array. didn't help
I cannot reproduce this.
Can you please create a codepen?
I'm so sorry about this issue. for some reason, I had a string in the property colors indataLabels. and this causes the chart to fail on more than 4 series.
...
dataLabels: {
enabled: true,
style: {
colors: '#000'
},
...
No worries :)
Most helpful comment
I'm so sorry about this issue. for some reason, I had a string in the property
colorsindataLabels. and this causes the chart to fail on more than 4 series.