projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95398db
)
fix issue 193 -- need to consider area.y when computing data coords
author
Dan Vanderkam
<dan@dygraphs.com>
Fri, 13 May 2011 00:52:03 +0000
(20:52 -0400)
committer
Dan Vanderkam
<dan@dygraphs.com>
Fri, 13 May 2011 00:52:03 +0000
(20:52 -0400)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
2e8a38e
..
a976436
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-556,7
+556,7
@@
Dygraph.prototype.toDataYCoord = function(y, axis) {
if (typeof(axis) == "undefined") axis = 0;
if (!this.axes_[axis].logscale) {
- return yRange[0] + (area.h - y) / area.h * (yRange[1] - yRange[0]);
+ return yRange[0] + (area.
y + area.
h - y) / area.h * (yRange[1] - yRange[0]);
} else {
// Computing the inverse of toDomCoord.
var pct = (y - area.y) / area.h