Fix hover positioning for linecharts when some lines are hidden
This commit is contained in:
parent
a9076b2cc4
commit
5da0060322
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue