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
We have to render potentially large tooltips in a small chart displayed within a container which needs to use overflow: auto to be scrollable. That leads to the tooltip being cut:
One common approach to prevent this is to use a portal. Unfortunately, Nivo doesn't provide portal support (unlike some other charting libraries). It would be really useful if it did so!
But here's my workaround for the Line chart with the slice mode enabled:
Posting it here so maybe somebody finds it useful too.
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
-
We have to render potentially large tooltips in a small chart displayed within a container which needs to use
overflow: auto
to be scrollable. That leads to the tooltip being cut:One common approach to prevent this is to use a portal. Unfortunately, Nivo doesn't provide portal support (unlike some other charting libraries). It would be really useful if it did so!
But here's my workaround for the
Line
chart with the slice mode enabled:Posting it here so maybe somebody finds it useful too.
Beta Was this translation helpful? Give feedback.
All reactions