-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Can't register module scatter3d #2502
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
Comments
What browser are you using? |
Using Chrome but just tested it with Firefox: Same issue (both desktop). |
... which version of Chrome and Firefox? This is very important. WebGL (and thus scatter3d) isn't support in all browsers. If you browser doesn't support WebGL there's not much we can do. You can navigate to https://get.webgl.org/ to check whether your browser supports WebGL. |
Newest versions (65.0.3325.181 for Chrome). When I require the whole Plotly.js library, I can see the 3 d chart without problems. |
In your https://github.com/ndabAP/plotly.js-scatter3d-issue/tree/master your webpack config is missing the |
You're right. I added the https://github.com/ndabAP/plotly.js-scatter3d-issue/blob/master/webpack.config.js#L24 |
Your config isn't right yet (I think, I'm no webpack expert). You do need to use See full example here: https://github.com/plotly/plotly-webpack/blob/master/webpack.config.js |
That did it. Sorry for bothering you. Should more rely on documentation ;) Have a nice day! |
Browser: Chrome 65
Device: Desktop
Plotly.js version: 1.35.2
Problem: It's not possible to use
Plotly.register(require('plotly.js/lib/scatter3d'))
to show up 3d charts. Error message appears:And console logs
Using the same set-up and registering the bar components works fine. Repository for reproduction: https://github.com/ndabAP/plotly.js-scatter3d-issue/tree/master
Steps to reproduce:
$ npm i
dist/index.html
. You should see a bar chart$ npm run build
dist/index.html
again. The error appearsWhen I import the whole Plotly.js library instead of registering the single chart components the 3d chart works fine.
The text was updated successfully, but these errors were encountered: