Changing color and line properties when hovering #1658
Replies: 3 comments 3 replies
-
Here you go. You will need to reimplement the |
Beta Was this translation helpful? Give feedback.
-
Hi @ami-rashid and hi @wyze and @plouc. The answer by @wyze here addresses the original question, but it would be time-consuming to get the custom layer approach to reproduce all the features as the nivo/line. Do you think this topic might be relevant for more broad implementation so that it could work out-of-the-box, also across the other packages? More specifically, I'm thinking of the current heatmap component, which has highlighting controlled via props |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I'm sorry if this is a duplicate post, but I'm not sure if this is currently possible. I'd like for a line to change its thickness and color when hovering over it, and then reset to its original properties when leaving. I tried to use
onMouseEnter
andonMouseLeave
, but these seem to trigger when I enter/leave the entire chart, not a single line. They also don't change the color for me.I can see log out the color properties of individual lines using
tooltip
, but I can't use this to change line properties.Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions