projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bd9c22
)
tighten up
author
Dan Vanderkam
<danvdk@gmail.com>
Fri, 27 Nov 2009 16:49:09 +0000
(11:49 -0500)
committer
Dan Vanderkam
<danvdk@gmail.com>
Fri, 27 Nov 2009 16:49:09 +0000
(11:49 -0500)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
fea3354
..
da089ce
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1044,12
+1044,8
@@
Dygraph.prototype.drawGraph_ = function(data) {
var minAxisY = minY - 0.1 * span;
// Try to include zero and make it minAxisY (or maxAxisY) if it makes sense.
- if (minAxisY < 0 && minY >= 0) {
- minAxisY = 0;
- }
- if (maxAxisY > 0 && maxY <= 0) {
- maxAxisY = 0;
- }
+ if (minAxisY < 0 && minY >= 0) minAxisY = 0;
+ if (maxAxisY > 0 && maxY <= 0) maxAxisY = 0;
if (this.attr_("includeZero")) {
if (maxY < 0) maxAxisY = 0;