From: Neal Nelson Date: Fri, 8 Oct 2010 13:54:04 +0000 (+0200) Subject: Fix label colour selection for sparse data sets. X-Git-Tag: v1.0.0~636^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8fb6dc2429af0e18f006ea496b94a8d2ae0f77e8;p=dygraphs.git Fix label colour selection for sparse data sets. --- diff --git a/dygraph.js b/dygraph.js index 98d297a..969584d 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1056,7 +1056,7 @@ Dygraph.prototype.updateSelection_ = function() { replace += "
"; } var point = this.selPoints_[i]; - var c = new RGBColor(this.colors_[i%clen]); + var c = new RGBColor(this.plotter_.colors[point.name]); var yval = fmtFunc(point.yval); replace += " " + point.name + ":"