projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR Comment: Adding check for undefined and changing back file modes
[dygraphs.git]
/
src
/
plugins
/
legend.js
diff --git
a/src/plugins/legend.js
b/src/plugins/legend.js
index
ab22fbb
..
9644576
100644
(file)
--- a/
src/plugins/legend.js
+++ b/
src/plugins/legend.js
@@
-268,7
+268,7
@@
Legend.generateLegendHTML = function(g, x, sel_points, oneEmWidth, row) {
var seriesData = labelToSeries[pt.name];
seriesData.y = pt.yval;
var seriesData = labelToSeries[pt.name];
seriesData.y = pt.yval;
- if ((pt.yval === 0 && !showZeros) || isNaN(pt.canvasy) || pt.canvasy === null) {
+ if ((pt.yval === 0 && !showZeros) || isNaN(pt.canvasy) || pt.canvasy === null
|| pt.canvasy === undefined
) {
seriesData.isVisible = false;
continue;
}
seriesData.isVisible = false;
continue;
}