plotly / plotly/plotly.py

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

オープン
#5,480 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@emilykl がすでに取り組んでいます。

2026年2月4日 から。

bug
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。