Skip to content

Interaction axis r support? #9826

@peteruithoven

Description

@peteruithoven

Feature Proposal

For Cartesian charts we can set the interaction to a whole axis. So when there is a smaller bar we can still easily access the tooltip. Example:
Screenshot from 2021-11-04 17 14 03@2x
This doesn't seem so easy for polar charts:
Polar chart interaction issue

I'd like something similar for polar charts, where no matter how close to the middle we hover we always get a tooltip. I was expecting there to be a option to set interaction.axis to r (radial) for example.
Interaction on whole r axis

I can set the intersect to false, but larger wedges will almost always be nearer.
Setting the mode to index and the intersect to false leads to unexpected interaction areas.

Feature Use Case

We have polar charts where in some cases the wedges are very small. We still would want people to easily access the tooltips per wedge.
A simple example that illustrates this challenge:
https://codepen.io/peteruithoven/pen/rNzJLaP

Possible Implementation

An r (radial) option for interaction.axis seems like a good solution? Consistent with Cartesian charts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions