Fix hover positioning for linecharts when some lines are hidden

Plots that are not shown should not count when calculating `_ymax` for a position in the graph.