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

Scattergl fails in "lines" mode with >= 100k data points #1271

Closed
qballed opened this issue Nov 7, 2018 · 2 comments
Closed

Scattergl fails in "lines" mode with >= 100k data points #1271

qballed opened this issue Nov 7, 2018 · 2 comments
Milestone

Comments

@qballed
Copy link

qballed commented Nov 7, 2018

Scattergl (and not Scatter) silently fails in "lines" mode since the 3.4 release when there are >= 100k data points. The resulting chart fails to display anything but produces two JavaScript errors instead.

import plotly.offline as pl
import plotly.graph_objs as go
import numpy as np

# Works in 3.3 and 3.4
pl.plot([go.Scattergl(x=list(range(99999)), y=list(np.random.random_sample(99999)), mode = 'lines')])

# Works in 3.3, fails in 3.4
pl.plot([go.Scattergl(x=list(range(100000)), y=list(np.random.random_sample(100000)), mode = 'lines')])

Resulting JavaScript errors are:

Uncaught TypeError: Cannot read property 'sizeAvg' of undefined
at Object.calc (temp-plot.html:7)
at _ (temp-plot.html:7)
at Object.v.doCalcdata (temp-plot.html:7)
at Object.r.plot (temp-plot.html:7)
at Object.r.newPlot (temp-plot.html:7)
at temp-plot.html:7

temp-plot.html:7 Uncaught TypeError: Cannot read property '0' of undefined
at Object.v.supplyDefaultsUpdateCalc (temp-plot.html:7)
at Object.v.supplyDefaults (temp-plot.html:7)
at r.plot (temp-plot.html:7)
at Object.r.call (temp-plot.html:7)
at r.layoutReplot (temp-plot.html:7)
at Object.l.syncOrAsync (temp-plot.html:7)
at t (temp-plot.html:7)
at Object.r.call (temp-plot.html:7)
at temp-plot.html:7
v.supplyDefaultsUpdateCalc @ temp-plot.html:7
v.supplyDefaults @ temp-plot.html:7
r.plot @ temp-plot.html:7
r.call @ temp-plot.html:7
r.layoutReplot @ temp-plot.html:7
l.syncOrAsync @ temp-plot.html:7
t @ temp-plot.html:7
r.call @ temp-plot.html:7
(anonymous) @ temp-plot.html:7

This has been tested on:

  • Chrome 70.0.3538.77 (Official Build) (64-bit)
  • Firefox 60.3.0esr (64-bit)
@qballed
Copy link
Author

qballed commented Nov 8, 2018

Also being tracked now in plotly.js 1.42

https://github.com/plotly/plotly.js/issues/3226

@jonmmease
Copy link
Contributor

Fixed in version 3.4.1. Thanks again for the report!

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

No branches or pull requests

2 participants