plotly / plotly/plotly.py

[BUG]: Plotly (Dash) not updating xaxes range via Patch method when subplots are horizontal

Ouverte
#5,480 2 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@emilykl y travaille déjà.

Depuis le 4/2/2026.

bug
Langage dominant
Python
Étoiles
18.8k
Forks
2.8k
Merge moyen
16 h 26 min
PR mergées (30 j)
21

Description

Description

Plotly (Dash) not updating xaxes range via Patch method when 2 subplots are horizontal make_subplots(rows=1, cols=2, shared_xaxes="all"). It works fine when the two subplots are vertical.

Plotly / Dash versions
plotly 6.5.2
dash 3.4.0

Screenshots/Video

Horizontal: On 1st Forward or Backward click half the trend disappears, because the range does not get updated.
Image

Horizontal: On 2nd Forward or Backward click half the trend disappears, because the range does not get updated.
Image

Vertical Subplots are OK! You can hit Forward/Backward as many times as you want
Image

Steps to reproduce
  1. Run attached code
  2. When Dropdown is Horizontal (default), use Forward/Backward button and trend will disappear in two clicks. The x-range does not keep up when the trend is updated via the Patch method patched_figure["layout"][f"xaxis{index + 1}"]["range"] = [now, now + timedelta(days=4)]
  3. When Dropdown is Vertical, all works as is should. You can hit Forward/Backward as many times as you want.

plotly_dash_patch.py

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.