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
When hovering over a specific data point (e.g., a circle) in a chart, it would be helpful to have the option to style or adjust the visibility of non-hovered data points. This feature would allow developers to emphasize the hovered point while dimming or styling the remaining points, improving focus and user interaction.
I've tried achieving this effect using dataPointMouseEnter and dataPointMouseLeave events. While I can apply new colors to non-hovered points during hover, this approach results in an unintended re-render, which causes the tooltip to misbehave.
@junedchhipa@brianlagunas, could you please verify if this is possible or not? Please let me know if you have any questions regarding this feature. Thanks.
ZahidChandio
changed the title
Add Non-Hovered State Styling for Chart Data Points
Radial chart data points non-hovered state styling
Nov 25, 2024
When hovering over a specific data point (e.g., a circle) in a chart, it would be helpful to have the option to style or adjust the visibility of non-hovered data points. This feature would allow developers to emphasize the hovered point while dimming or styling the remaining points, improving focus and user interaction.
I've tried achieving this effect using
dataPointMouseEnter
anddataPointMouseLeave
events. While I can apply new colors to non-hovered points during hover, this approach results in an unintended re-render, which causes the tooltip to misbehave.This is how tooltip behaves with the current code.
Intended behavior
Chart when there is no state change.
I am using Next.js 14.0.4.
The text was updated successfully, but these errors were encountered: