Skip to content

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

Closed
@jonmmease

Description

@jonmmease

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions