Skip to content

Use hoverdistance with hovermode closest #3569

Closed
@mmustala

Description

@mmustala

Hi.

My chart shows a lot of scatter lines and using the default hovermode became very verbose. Changing to hovermode 'closest' helped with it a lot. But now it is rather difficulty to hit some data points (candlesticks next to a scatter point especially) to see the hover box. I tried to set hoverdistance to 100 but it doesn't seem to have effect with this hovermode. But it would be really nice if it would show all hover items within the range defined with hoverdistance. But maybe just one item per data set, the one that is closest in the x axis.

Another way to reach this would be to have separate setting for x and y hoverdistance. Then I could use the default hovermode but define y hoverdistance to something like 10. Then it would show the hover items that are within the rectangle defined by the x and y hoverdistances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions