plotly / plotly/plotly.js

[BUG]: tickformat doesn't adjust when labels are positioned below minor ticks (because of ticklabelindex)

Đang mở
#7,933 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@my-tien đang làm issue này rồi.

Từ ngày 5/8/2026.

enhancement feature P3 size: 3
Ngôn ngữ chính
JavaScript
Star
18.3k
Fork
2k
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
28

Mô tả

This figure demonstrates the issue:

On the x-axis we have major ticks at daily intervals and minor ticks at 6 hour intervals. Although the labels are moved below minor ticks by setting ticklabelindex: -1, the default tickformat doesn't include hourly information, making the tick label incompatible with the labeled tick:

Image

https://codepen.io/toffi-fee/pen/LExqZNa

In contrast to this, if major ticks are labeled, the tickformat automatically includes hours if the ticks have an hourly period:

Image

https://codepen.io/toffi-fee/pen/YPNBeya

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.