plotly / plotly/plotly.R

Animation breaks with more than 10 line traces with no specified color

Open
#983 5 comments 0 reactions 0 assignees View on GitHub

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) 

ani-broke

doesn't:

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

ani-broke2

@rreusser I think this is a plotly.js issue -- any chance default colors aren't being supplied properly?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.