-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Invisible plot lines with WebGL (scattergl) in prod mode #3411
Comments
OK, but could you provide the src file and build command you used? Thank you! |
Thank you very much for your answer. Sorry i can't provide you something you can directly build. Here is a small archive extract.tar.gz containing what i think are the most relevant files:
Sorry if this may sound a bit confusing, but I hope it can help a bit more. Don't hesitate to ask me again if you need more specific info. |
OK i can reproduce the problem with a toy project! It was easier to demonstrate than i expected :) I guess it's possible to build the demo online but i don't know how to with Angular. But if you do it by hand it won't take you more than a few minutes. Create a new Angular project
Then edit src/app/app.components.ts
In app.component.html add this line:
In app.component.ts simply include PlotlyModule (i give you all the code as CommonModule seems obsolete now)
Then build the project with Now if build with |
What version of plotly.js are you using? |
hello,
The last available versions plotly.js 1.43.2 and angular-plotly.js 0.2.2. To make it easier to test i just created a small github repo with this sample project: Compared to the version above I slightly changed it to show both
I didn't try your component yet, i'll try to check it but any other help from you guys is welcome! The author of the standard Angular wrapper mentioned it could come from the minimization process, but he was not entirely sure. More info here: plotly/angular-plotly.js#31 |
Great news! The author of angular-plotly.js could fix it, see plotly/angular-plotly.js#31. |
Another good news, another issue i had when hovering on plots is now solved! |
I'm trying to draw standard plots with WebGL but the lines remain invisible :(
The data is loaded correctly, as you can see the values when hovering on the points, so it seems to be a problem of rendering for the lines. Note the markers (X) are correctly shown.
For WebGL i'm using
data.type="scattergl"
instead of the usualscatter
. The reason is i have several hundreds of thousands of points to visualize and it's way faster with WebGL. Note the problem also occurs if i load very little data. However if i plot withscatter
it works fine! So the code should be good.I'm using Angular with the standard plotly wrapper so i opened a ticket there as well but i can't tell yet where the bug is. Also note if i build my angular app in dev mode, i.e. without build optimization, it works! So it's the combination of scattergl + prod mode that fails. Any idea to explain this bug?
I'm sorry i can't provide you an online code and seen it depends on the build mode it wouldn't be relevant. But it may be something you've already seen such as this #3405 (but it was for react.js!) or maybe you can give me some tips.
Thank you in advance for any help.
The text was updated successfully, but these errors were encountered: