projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b03b9d2
)
Ignore data series' with null data for the purposes of auto scaling.
author
Neal Nelson
<neal@makalumedia.com>
Fri, 8 Oct 2010 12:08:49 +0000
(14:08 +0200)
committer
Neal Nelson
<neal@makalumedia.com>
Fri, 8 Oct 2010 12:08:49 +0000
(14:08 +0200)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
8d171e3
..
98d297a
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1666,8
+1666,8
@@
Dygraph.prototype.drawGraph_ = function(data) {
var extremes = this.extremeValues_(series);
var thisMinY = extremes[0];
var thisMaxY = extremes[1];
- if (minY === null ||
thisMinY < minY
) minY = thisMinY;
- if (maxY === null ||
thisMaxY > maxY
) maxY = thisMaxY;
+ if (minY === null ||
(thisMinY != null && thisMinY < minY)
) minY = thisMinY;
+ if (maxY === null ||
(thisMaxY != null && thisMaxY > maxY)
) maxY = thisMaxY;
if (bars) {
for (var j=0; j<series.length; j++) {