Fix hover positioning for linecharts when some lines are hidden

This commit is contained in:
Jelte Fennema 2014-07-23 17:16:26 +02:00
parent a9076b2cc4
commit 5da0060322
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Morris.Line extends Morris.Grid
row._x = @transX(row.x)
row._y = for y in row.y
if y? then @transY(y) else y
row._ymax = Math.min [@bottom].concat(y for y in row._y when y?)...
row._ymax = Math.min [@bottom].concat(y for y, i in row._y when y? and @hasToShow(i))...
# hit test - returns the index of the row at the given x-coordinate
#