-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[Bug] Hovertemplate not persisted after animation #2722
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
Comments
This is indeed surprising and annoying, but |
Thanks @nicolaskruchten, this worked for me:
|
Thanks @MaxGhenis! This worked for me too. But, in my case, I needed to iterate through frame.data. My code looked like this:
|
I unfortunately cannot get either of these two workarounds to work using a choropleth or a choropleth_mapbox. Any advice ? |
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson |
I've noticed this issue using Plotly with Dash & also reproduced in my own Jupyter notebook.
Here is a code sample reproducing the issue :
When the figure is initially loaded, the tooltips show my custom hover template. After the animation, my hover template is no longer in use and the tooltips show their initial content (i.e. the property names followed by an equal sign & their value).
Before animation:

After animation:

The text was updated successfully, but these errors were encountered: