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:
commit
6996ae2473
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue