Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regl ScatterGL points disappear during selection selection with large number of points #2266

Closed
jonmmease opened this issue Jan 19, 2018 · 5 comments
Labels
bug something broken

Comments

@jonmmease
Copy link
Contributor

First off, the new regl-based scattergl is awesome. Thanks @dfcreative and @etpinard

Description

When I create a scattergl plot with 20k+ points, the points disappear during a selection operation (both lasso and box select). After double clicking to exit the selection mode the points re-appear. In the console, I see the following error.

4VM7119:2 Uncaught TypeError: Cannot read property '222' of undefined
    at A (eval at i (VM6265 plotly-1.33.0.min.js:7), <anonymous>:2:62)
    at Object.dispatchBsearchGE [as ge] (eval at i (VM6265 plotly-1.33.0.min.js:7), <anonymous>:2:360)
    at y (VM6265 plotly-1.33.0.min.js:7)
    at v (VM6265 plotly-1.33.0.min.js:7)
    at VM6265 plotly-1.33.0.min.js:7
    at Array.forEach (<anonymous>)
    at Function.p [as draw] (VM6265 plotly-1.33.0.min.js:7)
    at Object.e._scene.r.draw (VM6265 plotly-1.33.0.min.js:7)
    at Object.style (VM6265 plotly-1.33.0.min.js:7)
    at i (VM6265 plotly-1.33.0.min.js:7)

Things work fine when I test with around 10k points.

Example pen: https://codepen.io/anon/pen/WdLgWQ

Details

  • Plotly 1.33.0 from the CDN
  • Chrome Version 63.0.3239.132 on OS X
@dy
Copy link
Contributor

dy commented Jan 19, 2018

@jmmease thank you! Will be fixed with #2267

@alexcjohnson alexcjohnson added the bug something broken label Jan 19, 2018
@dy dy closed this as completed Jan 23, 2018
@meganrm
Copy link

meganrm commented May 24, 2018

Description
I have this same problem, but without any error. This is ~30,000 points. When I plotted less than 10,000.

Example site: https://meganrm.github.io/plotting-tool/

Details
Plotly 1.37.1 from npm
Chrome Version 66.0.3359.139

Should I create a new issue?

@etpinard
Copy link
Contributor

Thanks for reporting this.

Should I create a new issue?

If you could isolate the problem in a codepen/jsfiddle/jsbin with just your data/layout graph - it would help us immensely.

@meganrm
Copy link

meganrm commented May 25, 2018

Here is a plot using my data: https://codepen.io/meganrm/pen/odKveW

Both box select and lasso select make all the points go away. I haven't tested to see if the callback still gets the points or not. And I don't see any errors.

@etpinard
Copy link
Contributor

etpinard commented May 25, 2018

Thanks very much for the codepen. @meganrm

It's a separate issue. Your graph appears to work fine w/o the transforms array. You can subscribe to #2671 for the most up-to-date development info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

5 participants