plotly / plotly/plotly.R

Regression bug: points jump around when LASSOing with webGL

Open
#1,215 2 comments 0 reactions 0 assignees View on GitHub

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

calculatingkindgar-max-14mb

(originally reported in #1211)

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.