Merge pull request #467 from JelteF/hidden-series-hover-fix

Fix hover positioning for linecharts when some lines are hidden
This commit is contained in:
Jelte Fennema 2015-01-08 12:55:09 +01:00
commit 6996ae2473
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,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
#