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
So I created a Pie Chart with a custom label component and a custom tooltip using ChakraUI.
The requirements are that the label should show in the center of each slice.
Tooltip must show when the mouse is inside the slice (wether over the the label or not)
Currently the label only shows on some slices (where it's wide enough to accommodate the text). The following problem is ONLY for slices with the label.
When moving the mouse over the slice, the tooltip show, unless you move your mouse over the label, which causes the tooltip to disappear.
The most applicable code (I believe...pretty new to the React world) below:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I created a Pie Chart with a custom label component and a custom tooltip using ChakraUI.
The requirements are that the label should show in the center of each slice.
Tooltip must show when the mouse is inside the slice (wether over the the label or not)
Currently the label only shows on some slices (where it's wide enough to accommodate the text). The following problem is ONLY for slices with the label.
When moving the mouse over the slice, the tooltip show, unless you move your mouse over the label, which causes the tooltip to disappear.
The most applicable code (I believe...pretty new to the React world) below:
Beta Was this translation helpful? Give feedback.
All reactions