projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85abed3
)
fix a small bug which appeared when a series had a min/max of zero
author
Dan Vanderkam
<danvdk@gmail.com>
Tue, 6 Apr 2010 17:13:54 +0000
(10:13 -0700)
committer
Dan Vanderkam
<danvdk@gmail.com>
Tue, 6 Apr 2010 17:13:54 +0000
(10:13 -0700)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
1012d76
..
dc4ff2b
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1565,8
+1565,8
@@
Dygraph.prototype.drawGraph_ = function(data) {
var extremes = this.extremeValues_(series);
var thisMinY = extremes[0];
var thisMaxY = extremes[1];
- if (
!minY
|| thisMinY < minY) minY = thisMinY;
- if (
!maxY
|| thisMaxY > maxY) maxY = thisMaxY;
+ if (
minY === null
|| thisMinY < minY) minY = thisMinY;
+ if (
maxY === null
|| thisMaxY > maxY) maxY = thisMaxY;
if (bars) {
var vals = [];