Shapes/images don't accumulate with multiple calls to layout()
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
line1 <- list(
type = "line",
x0 = 0,
x1 = 1,
y0 = 0.5,
y1 = 0.5,
xref = "paper",
yref = "paper",
line = list(color = "#C3C4C6")
)
line2 <- list(
type = "line",
x0 = 0,
x1 = 1,
y0 = 0.75,
y1 = 0.75,
xref = "paper",
yref = "paper",
line = list(color = "#C3C4C6")
)
plotly_empty() %>%
layout(shapes = line1) %>%
layout(shapes = line2)
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
Start by running the R example in the issue and confirm that the second layout() call replaces rather than accumulates the first shape. Trace the layout() handling in the plotly.R package, then verify that both line shapes remain after successive calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100