Animation breaks with more than 10 line traces with no specified color
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
Works ok
p <- plot_ly(txhousing, x = ~month, y = ~log(sales), frame = ~year, split = ~city, color = I("red"))
add_lines(p)

doesn't:
p <- plot_ly(txhousing, x = ~month, y = ~log(sales), frame = ~year, split = ~city)
add_lines(p)

@rreusser I think this is a plotly.js issue -- any chance default colors aren't being supplied properly?
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 two plot_ly/add_lines examples from the issue, comparing the explicit-color case with the case using more than 10 city traces and no specified color. Trace whether default colors are supplied during animation, then verify that the no-color example animates correctly without changing the explicit-color behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100