[BUG]: Plotly (Dash) not updating xaxes range via Patch method when subplots are horizontal
Đang mở
@emilykl đang làm issue này rồi.
Từ ngày 4/2/2026.
bug
- Ngôn ngữ chính
- Python
- Star
- 18.8k
- Fork
- 2.8k
- Merge trung bình
- 16 giờ 26 phút
- Pull request đã merge (30 ngày)
- 21
Mô tả
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.
Horizontal: On 2nd Forward or Backward click half the trend disappears, because the range does not get updated.
Vertical Subplots are OK! You can hit Forward/Backward as many times as you want
Steps to reproduce
- Run attached code
- 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)] - When Dropdown is Vertical, all works as is should. You can hit Forward/Backward as many times as you want.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.