Scattergl does not fill (`tonexty`) if another Scattergl trace is present
Chưa có ai nhận issue này.
- 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ả
When attempting to fill the area between two lines using Scattergl, no filled area is showing up when another Scattergl trace is present before the two traces I'm trying to fill between. See the example below.
I'm not sure if this issue is related to some of the other issues posted about Scattergl and filling but none of those seem to mention the filled area not showing up, so I figured I'd post a new issue.
plotly version 5.18.0
Not working
This example shows what i mean:
import plotly.graph_objects as go
import numpy as np
upper_trace = go.Scattergl(
x=np.arange(10),
y=np.ones(10),
mode="lines",
line_color="blue",
fill="tonexty",
legendgroup="area",
)
lower_trace = go.Scattergl(
x=np.arange(10),
y=-np.ones(10),
mode="lines",
line_color="blue",
fill="tonexty",
legendgroup="area",
showlegend=False,
)
other = go.Scattergl(
x=np.arange(10),
y=2 * np.ones(10),
mode="lines+markers",
line_color="red",
)
go.Figure([other, upper_trace, lower_trace])
Output:
Working
go.Figure([upper_trace, lower_trace, other])
Thanks in advance for taking a look.
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.
Hướng nghiên cứu
Tái hiện hai ví dụ Python với Plotly 5.18.0, tập trung vào các trace Scattergl và thứ tự của chúng. Theo dõi đường dẫn kết xuất Scattergl cho fill="tonexty"; được xem là hoàn tất khi vùng được tô xuất hiện khi một trace Scattergl khác đứng trước hai trace đó và vẫn chính xác khi thay đổi thứ tự.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- data-visualization
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100