projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
7cd1ffe
0017955
)
merge
author
Dan Vanderkam
<danvdk@gmail.com>
Thu, 29 Aug 2013 23:19:58 +0000
(19:19 -0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Thu, 29 Aug 2013 23:19:58 +0000
(19:19 -0400)
1
2
dygraph.js
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
dygraph.js
index
1bfe873
,
effe10d
..
6fa21e8
---
1
/
dygraph.js
---
2
/
dygraph.js
+++ b/
dygraph.js
@@@
-885,11
-854,10
+885,11
@@@
Dygraph.prototype.toDataYCoord = functi
}
var area = this.plotter_.area;
- var yRange = this.yAxisRange(axis);
+ var yRange = this.yAxisRange(opt_axis);
+
+ var axis = opt_axis || 0;
- if (!this.axes_[axis].logscale) {
- if (typeof(axis) == "undefined") axis = 0;
+ if (!this.attributes_.getForAxis("logscale", axis)) {
return yRange[0] + (area.y + area.h - y) / area.h * (yRange[1] - yRange[0]);
} else {
// Computing the inverse of toDomCoord.