projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code review: rename to .singleSeriesName
[dygraphs.git]
/
dygraph-canvas.js
diff --git
a/dygraph-canvas.js
b/dygraph-canvas.js
index
466d0ff
..
7b0cebf
100644
(file)
--- 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,
plotArea: this.area,
seriesIndex: j,
seriesCount: sets.length,
-
onlySeries
: opt_seriesName,
+
singleSeriesName
: opt_seriesName,
allSeriesPoints: sets
});
ctx.restore();
allSeriesPoints: sets
});
ctx.restore();
@@
-672,9
+672,11
@@
DygraphCanvasRenderer._errorPlotter = function(e) {
* @private
*/
DygraphCanvasRenderer._fillPlotter = 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;
// 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
var g = e.dygraph;
var setNames = g.getLabels().slice(1); // remove x-axis