Commit a6414cac authored by David Schnur's avatar David Schnur

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.
parent 88e0567b
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment