From: Dan Vanderkam Date: Sat, 20 Feb 2010 02:58:50 +0000 (-0800) Subject: fix bug in toDomCoords X-Git-Tag: v1.0.0~716 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=891ad846715bece6a69959f97e0a42e57f559ff3;p=dygraphs.git fix bug in toDomCoords --- diff --git a/dygraph.js b/dygraph.js index 6bf8e7c..6bacea2 100644 --- 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;