From: Klaus Weidner Date: Tue, 12 Feb 2013 18:19:20 +0000 (-0800) Subject: code review: rename to .singleSeriesName X-Git-Tag: v1.0.0~76^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3c080cd0184a943cd77118e83d3f4148360505d6;p=dygraphs.git code review: rename to .singleSeriesName --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 466d0ff..7b0cebf 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -514,7 +514,7 @@ DygraphCanvasRenderer.prototype._renderLineChart = function(opt_seriesName, opt_ plotArea: this.area, seriesIndex: j, seriesCount: sets.length, - onlySeries: opt_seriesName, + singleSeriesName: opt_seriesName, allSeriesPoints: sets }); ctx.restore(); @@ -672,9 +672,11 @@ DygraphCanvasRenderer._errorPlotter = function(e) { * @private */ DygraphCanvasRenderer._fillPlotter = function(e) { + // Skip if we're drawing a single series for interactive highlight overlay. + if (e.singleSeriesName) return; + // We'll handle all the series at once, not one-by-one. if (e.seriesIndex !== 0) return; - if (e.onlySeries) return; var g = e.dygraph; var setNames = g.getLabels().slice(1); // remove x-axis