Skip to content

Heatmap rendering performance when many slider steps #6533

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

Open
josephernest opened this issue Mar 21, 2023 · 2 comments
Open

Heatmap rendering performance when many slider steps #6533

josephernest opened this issue Mar 21, 2023 · 2 comments
Labels
bug something broken P3 backlog performance something is slow

Comments

@josephernest
Copy link

josephernest commented Mar 21, 2023

Hi,

This one is somehow related to #6521 but slightly different.

  • when working with 1000 slider steps (Plotly slider), the rendering of this heatmap is quite slow (between 1 and 2 frames per second when moving the slider): https://jsfiddle.net/wh1o2pyq/1/

  • When working with 50 slider steps (Plotly slider), the rendering is super fast (more than 10 fps): https://jsfiddle.net/wh1o2pyq/2/

  • When working with 1000 slider steps but with a HTML slider instead of the Plotly slider (<input type="range">), it is super fast: https://jsfiddle.net/5L9ykt76/

TL;DR: Plotly slider with many hundreds of steps seems to be a bottleneck for heatmap rendering

Does this mean the slider itself is re-rendered for each update, making the whole thing slow?

I believe that solving this issue could have massive improvement on the responsiveness of every Plotly/Dash dashboard using sliders :)

Any idea?

@josephernest
Copy link
Author

josephernest commented Mar 21, 2023

(Updated with the 3rd bullet point - https://jsfiddle.net/5L9ykt76/)

@morganchristiansson
Copy link

I believe I'm having the same issue with the slider but for choropleth map

I made a post in the forum about it https://community.plotly.com/t/choropleth-slider-animation-sluggish-with-many-frames/77857

@gvwilson gvwilson self-assigned this Jul 12, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added bug something broken P3 backlog performance something is slow labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog performance something is slow
Projects
None yet
Development

No branches or pull requests

3 participants