Scattergl fill not shown when too many scattergl-traces in plot
Open
Nobody has claimed this yet.
bug
P3
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
A strange bug happens when adding more than 508 scattergl traces to a figure: the fill property is not shown anymore:
n=509
fig = go.Figure()
for i in range(n):
fig.add_scattergl(
x=[0,1], y=np.random.random(2), mode='lines',
showlegend=False
)
fig.add_scattergl(
x=[0.1, 0.9, 0.9, 0.1],
y=[0.2, 0.2, 1.2, 1.2],
mode='lines', fill='toself', fillcolor='red'
)
fig.update_layout(hovermode='closest')
With n=509, the fill doesn't show (but the line of the trace does), with n=508, the fill shows up.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided Python example, comparing 508 and 509 scattergl traces and checking the final trace's fill rendering. Start by tracing the scattergl rendering path used by the figure; done means the red fill remains visible with 509 traces while the existing line and rendering behavior remain intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100