Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animations cannot be disabled for pie chart tooltips #2656

Open
ImLunaHey opened this issue Sep 30, 2024 · 1 comment
Open

animations cannot be disabled for pie chart tooltips #2656

ImLunaHey opened this issue Sep 30, 2024 · 1 comment

Comments

@ImLunaHey
Copy link

Describe/explain the bug
Tooltips within pie charts (others too maybe?) will always have an animation as the tooltip's wrapper is animated.

demo with default tooltip:
Screenshot 2024-09-30 at 12 29 26 PM

custom tooltip:
Screenshot 2024-09-30 at 12 26 25 PM

To Reproduce
https://nivo.rocks/pie/canvas

Steps to reproduce the behavior:

  1. Hover a piece of a pie chart
  2. Move your cursor really fast to another piece and notice the way the tooltip lags behind

Expected behavior
Either animate={false} needs to be added to PieChart or tooltips need a way to opt out of having a wrapper.

@ImLunaHey
Copy link
Author

for anyone looking for a workaround, if you dont use react-spring for anything else you can globally disable animations.

import { Globals } from 'react-spring';

Globals.assign({
  skipAnimation: true,
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant