Regression bug: points jump around when LASSOing with webGL
Open
Nobody has claimed this yet.
plotly.js
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
This was introduced some time between 2018-01-26 to 2018-03-07
df <- data.frame(x = runif(10000, min = 0, max = 20000), y = runif(10000, min = 0, max = 20000))
plot_ly(df, x = ~x, y= ~y) %>% add_markers() %>% toWebGL()
When the above code is run with plotly from 2018-01-26, selecting points works fine. But when run with a version from 2018-03-07, selecting points causes them to jump.
See video below

(originally reported in #1211)
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 provided R reproduction with plotly.R versions from 2018-01-26 and 2018-03-07, then compare the WebGL selection behavior and inspect the regression between those versions. Done means selecting points in the 10,000-point plot no longer makes them jump.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100