You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I need to add a pointer cursor to a pie chart's arcs, and was disappointed when I found no easy way to do it. I read a suggestion to add the style on mouse enter using Javascript. However, I think a more declarative approach based on CSS would make this easier, more performant and support more use cases.
Describe the solution you'd like
I'd like graph elements (my use case is specifically for arcs and bars but I can imagine labels and other elements being useful too in certain cases) to have distinct class names, so I can style them with CSS.
Describe alternatives you've considered
The svg > g > g > path selector does the trick for me, but is closely tied to implementation details that may change without notice.
The onMouseEnter event also works, but feels overkill and adds extra JS that isn't really needed.
The text was updated successfully, but these errors were encountered:
I've always been a bit reluctant to rely on CSS for styling, because it's not supported for canvas implementations, but it seems like most users rely on the SVG implementation of the charts, so it would certainly help most users. I'll consider this feature.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Is your feature request related to a problem? Please describe.
I need to add a pointer cursor to a pie chart's arcs, and was disappointed when I found no easy way to do it. I read a suggestion to add the style on mouse enter using Javascript. However, I think a more declarative approach based on CSS would make this easier, more performant and support more use cases.
Describe the solution you'd like
I'd like graph elements (my use case is specifically for arcs and bars but I can imagine labels and other elements being useful too in certain cases) to have distinct class names, so I can style them with CSS.
Describe alternatives you've considered
svg > g > g > path
selector does the trick for me, but is closely tied to implementation details that may change without notice.onMouseEnter
event also works, but feels overkill and adds extra JS that isn't really needed.The text was updated successfully, but these errors were encountered: