projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3230c66
)
fix bug in toDomCoords
author
Dan Vanderkam
<danvdk@gmail.com>
Sat, 20 Feb 2010 02:58:50 +0000
(18:58 -0800)
committer
Dan Vanderkam
<danvdk@gmail.com>
Sat, 20 Feb 2010 02:58:50 +0000
(18:58 -0800)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
6bf8e7c
..
6bacea2
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-303,7
+303,7
@@
Dygraph.prototype.toDomCoords = function(x, y) {
if (y !== null) {
var yRange = this.yAxisRange();
- ret[1] = area.y + (yRange[
0
] - y) / (yRange[1] - yRange[0]) * area.h;
+ ret[1] = area.y + (yRange[
1
] - y) / (yRange[1] - yRange[0]) * area.h;
}
return ret;