projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix #282. Use valueRange (if specified) instead of extremes during unzooming....
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
758d26d
..
18dea9e
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1332,7
+1332,7
@@
Dygraph.prototype.doUnzoom_ = function() {
}
for (var i = 0; i < this.axes_.length; i++) {
}
for (var i = 0; i < this.axes_.length; i++) {
- if (this.axes_[i].valueWindow !== null) {
+ if (t
ypeof(this.axes_[i].valueWindow) !== 'undefined' && t
his.axes_[i].valueWindow !== null) {
dirty = true;
dirtyY = true;
}
dirty = true;
dirtyY = true;
}
@@
-1384,7
+1384,8
@@
Dygraph.prototype.doUnzoom_ = function() {
newValueRanges = [];
for (i = 0; i < this.axes_.length; i++) {
newValueRanges = [];
for (i = 0; i < this.axes_.length; i++) {
- newValueRanges.push(this.axes_[i].extremeRange);
+ var axis = this.axes_[i];
+ newValueRanges.push(axis.valueRange != null ? axis.valueRange : axis.extremeRange);
}
}
}
}