Prevent color generation with all fixed indexes.

As pointed out in a comment to #832, initializing maxIndex to zero
results in the creation of a single color even when all indexes are
fixed.
pull/1/head
David Schnur 13 years ago
parent 88e0567b46
commit a6414cac60

@ -421,7 +421,7 @@ Licensed under the MIT license.
function fillInSeriesOptions() {
var neededColors = series.length, maxIndex = 0, i;
var neededColors = series.length, maxIndex = -1, i;
// Subtract the number of series that already have fixed colors or
// color indexes from the number that we still need to generate.

Loading…
Cancel
Save