Description
From discussion on #1461 , the position of the hoverinfo drawn on points should be based not only on how close the point is to the edge of the chart, but also based on which axis the point refers to. Today in instances where the datapoint is plotted on a right axis the hoverinfo can be drawn over the axis making it harder to understand the point's relative position. For example, on mocks/multiple_axes_multiple.json
:
From @alexcjohnson:
if we did this based on the pixel position of the axis relative to the hovered-on point, rather than on the side, then if you put a free axis over the middle of the plot, the labels would flip as you cross the axis, which seems like it would be a cool & useful effect - and you'd automatically get it right for free axes off the edge