New legend_groupclick option to mix toggle item and group
Đang mở
@alexshoe đang làm issue này rồi.
Từ ngày 26/11/2025.
- 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ả
For as long as I remember, placing plot legends into legendgroup caused clicking on any single legend in a group (or its title) to hide/show as a group.
Then with 5.3 it became possible to toggle a single item even when in a legendgroup - as explained and illustrated in https://plotly.com/python/legend/#group-click-toggle-behavior
fig.update_layout(legend=dict(groupclick="toggleitem"))
Now, I would love it if Plotly could offer the following "mixed" behaviour:
- when clicking on a sub-item → toggle that item
- when clicking on the group title → toggle the whole group
That would bring the best of both worlds, in my view…
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á.