projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #216 from klausw-g/issue-424-b
[dygraphs.git]
/
dygraph-canvas.js
diff --git
a/dygraph-canvas.js
b/dygraph-canvas.js
index
0e1bc75
..
b647b7a
100644
(file)
--- a/
dygraph-canvas.js
+++ b/
dygraph-canvas.js
@@
-475,7
+475,7
@@
DygraphCanvasRenderer.prototype._renderLineChart = function(opt_seriesName, opt_
for (var j = 0; j < sets.length; j++) {
setName = setNames[j];
for (var j = 0; j < sets.length; j++) {
setName = setNames[j];
- if (opt_seriesName &&
!(is_last && setName == opt_seriesName)
) continue;
+ if (opt_seriesName &&
setName != opt_seriesName
) continue;
var points = sets[j];
var points = sets[j];
@@
-507,6
+507,7
@@
DygraphCanvasRenderer.prototype._renderLineChart = function(opt_seriesName, opt_
plotArea: this.area,
seriesIndex: j,
seriesCount: sets.length,
plotArea: this.area,
seriesIndex: j,
seriesCount: sets.length,
+ singleSeriesName: opt_seriesName,
allSeriesPoints: sets
});
ctx.restore();
allSeriesPoints: sets
});
ctx.restore();
@@
-664,6
+665,9
@@
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;