Skip to content

Dynamic hoverinfo placement based on axis location #1469

Closed
@rpaskowitz

Description

@rpaskowitz

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:
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions