Skip to content

[BUG] Patch update with relayoutData no longer working after Dash 4.1 to 4.2 upgrade #3810

Closed

Description

@ghaarsma

After upgrading from Dash 4.1 to Dash 4.2, a part of our Dash trending of timeseries data failed to work correctly.

Under Dash 4.1 (Python 3.14), everything works as expected in the attached MRE. You can hit forward/backward button and pan (click and drag the x-axes) the trend.

After upgrading to Dash 4.2, the forward/backward buttons still work, but when you try to pan after selecting forward/backward the panning doesn't work anymore. The figure is stuck on the prior x-axis range.

dash_patch_relayout.py

How it should look (always a diagonal line):
Image

When first hitting forward/backward and then panning (this works fine under Dash 4.1, but not Dash 4.2):

Image

Activity

  1. ghaarsma commented on Jul 6, 2026

    @ghaarsma
    Author

    @camdecoster, I noticed that this bug was not (yet) triaged. I can confirm this is still a problem for us under Dash 4.4 and prevents us from upgrading. We are currently stuck on Dash 4.1

    The panning bug with relayoutData can be tricky to reproduce. You first have to move backward/foward with the buttons and after that the panning in the figure via relayoutData no longer works. If you are having issues reproducing, please let me know.

  2. AnnMarieW commented on Jul 6, 2026

    @AnnMarieW
    Collaborator

    @ghaarsma
    I did try to reproduce the issue. Can you please include what Plotly version you are using with dash 4.1 and dash 4.4?

  3. ghaarsma commented on Jul 6, 2026

    @ghaarsma
    Author

    I'm using the latest plotly version 6.8.0 for both. My only project dependency is Dash 4.1 vs Dash 4.4

    Poetry Dash 4.1 to 4.4 upgrade log:

    Package operations: 5 installs, 1 update, 0 removals
    
      - Installing annotated-types (0.7.0)
      - Installing pydantic-core (2.46.4)
      - Installing typing-inspection (0.4.2)
      - Installing janus (2.0.0)
      - Installing pydantic (2.13.4)
      - Updating dash (4.1.0 -> 4.4.0)
    

    In order to reproduce the failures under Dash 4.4, first hit the backward/foward buttons and then pan the figure (by click and drag from the center of the x-axis). Under Dash 4.4 this pan will fail and it will snap back to it's prior x-axis limits.

    @AnnMarieW , Let me know if you cannot reproduce and I can perhaps show in Zoom/Teams

  4. AnnMarieW commented on Jul 7, 2026

    @AnnMarieW
    Collaborator

    Ok, I was able to reproduce it. Thanks for the additional info.
    I expect it's from changes in this PR #3785

  5. ghaarsma commented on Jul 7, 2026

    @ghaarsma
    Author

    @AnnMarieW, Thank you for the confirmation. I agree that PR #3785 sounds plausible, given the fact that the plotly-resampler project reports very similar issues in their own bug report.

    Hope we can have this fixed in the near future.

  6. added a commit that references this issue on Jul 7, 2026
    c07a319
  7. AnnMarieW commented on Jul 7, 2026

    @AnnMarieW
    Collaborator

    @T4rk1n - Wow - that was fast! 🎉

  8. tlauli commented on Jul 20, 2026

    @tlauli
    Contributor

    Hi, we just hit this bug too during an upgrade, glad to see it is already fixed. <3 Is a patch release planned anytime soon?

  9. ghaarsma commented on Jul 22, 2026

    @ghaarsma
    Author

    Can confirm that is has been fixed in Dash 4.4.1. Thank you @T4rk1n for the fix and new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions