[BUG]: Trace doesn't line up with axis when having an automargin title and there are sliders/buttons displayed
Maintainer thường phản hồi trong vòng 1 ngày
@gokul-debugger đang làm issue này rồi.
Từ ngày 11/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
There is an issue with the title's automargin feature when a slider or buttons are displayed. In this case, when automargin increases the top margin, it will push down the chart’s tick labels (correctly) but will NOT push down the traces. Then, the trace is in the wrong location on the y-axis and misrepresents the data values.
Screenshots/Video
Steps to reproduce
- Go to the sample codepen from https://plotly.com/javascript/sliders/#add-a-play-button-to-control-a-slider :
https://codepen.io/plotly/pen/NbKmmQ - Add the following to the layout:
margin:{autoexpand:true, t:0}, title:{automargin:true, text:"Title"}, - You can see that the yaxis ticks do not line up with the data/trace
Notes
This seems to be a combination of margin:{autoexpand:true}, title:{automargin:true} and having sliders and/or buttons displayed. You can also set a bigger title font (like font:{size:"36"}) for this to have a greater effect.
- Ngôn ngữ chính
- JavaScript
- Star
- 18.3k
- Fork
- 2k
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
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.
Issue khác của plotly/plotly.js
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
chore P3 plotly-internal size: 3 task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
chore P1 plotly-internal size: 1 task
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
chore P3 plotly-internal size: 1 task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
plotly/plotly.js#7648 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của plotly/plotly.js
Issue tương tự
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
vercel/ai#21528 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
status: waiting triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
freeCodeCamp/freeCodeCamp#70412 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
rohitg00/ai-engineering-from-scratch#490 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 6 ngày