From: Robert Konigsberg Date: Thu, 12 Sep 2013 17:15:05 +0000 (-0400) Subject: Whoops, remove now-invalid code in setColors_. X-Git-Tag: v1.1.0~89^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=253f4333cfa17c5b6802fd574cb1a7c0b3a02603;p=dygraphs.git Whoops, remove now-invalid code in setColors_. --- diff --git a/dygraph.js b/dygraph.js index 4e15985..cee63e8 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1188,31 +1188,6 @@ Dygraph.prototype.setColors_ = function() { this.colors_.push(colorStr); this.colorsMap_[label] = colorStr; } -/* - if (!colors) { - var sat = this.attr_('colorSaturation') || 1.0; - var val = this.attr_('colorValue') || 0.5; - var half = Math.ceil(num / 2); - for (i = 1; i <= num; i++) { - if (!this.visibility()[i-1]) continue; - var customColor = this.attributes_.getForSeries('color', labels[i]); - // alternate colors for high contrast. - var idx = i % 2 ? Math.ceil(i / 2) : (half + i / 2); - var hue = (1.0 * idx/ (1 + num)); - var colorStr = Dygraph.hsvToRGB(hue, sat, val); - this.colors_.push(colorStr); - this.colorsMap_[labels[i]] = colorStr; - } - } else { - for (i = 0; i < num; i++) { - if (!this.visibility()[i]) continue; - var colorStr = colors[i % colors.length]; - this.colors_.push(colorStr); - this.colorsMap_[labels[1 + i]] = colorStr; - } - } -*/ - }; /**