Commit f6b279ce authored by David Schnur's avatar David Schnur

Fixed a logic error in series color generation.

This addresses #906, the case where a fixed color index on a series
results in the color generator producing one color less than is actually
needed.
parent 8760ee77
...@@ -439,7 +439,7 @@ Licensed under the MIT license. ...@@ -439,7 +439,7 @@ Licensed under the MIT license.
// If any of the user colors are numeric indexes, then we // If any of the user colors are numeric indexes, then we
// need to generate at least as many as the highest index. // need to generate at least as many as the highest index.
if (maxIndex > neededColors) { if (maxIndex >= neededColors) {
neededColors = maxIndex + 1; neededColors = maxIndex + 1;
} }
......
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