-
-
Notifications
You must be signed in to change notification settings - Fork 78
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 #31
Comments
FYI i also opened a ticket in the plotly.js project: plotly/plotly.js#3411. |
All right i managed to reproduce it with a toy project based on the sample given on your main README here.
With With |
I could replicate with your example. So, I am guessing that the angular minification ( resulted from |
Many thanks for your effort! Much appreciated :) |
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 Feel free to send me some changes if you have some other suggestions. I'll let you know if something new come from plotly.js. |
@virgile-hogman Thank you for creating this sample repo. I could test on it and see that it is fixes on version Thus, the version |
@andrefarzat amazing! I tried it also on my real project and it works 👍 What a good a news! 🥇 At first sight the minimization doesn't look slower for me that it was before. It is obviously way longer than a dev mode but that makes sense because of all the optimizations to produce the bundle. Great you also put some new options for custom build but i didn't need those at this point. Great job and fast fix, big thanks!! |
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. Also, if i build my angular library 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?This somehow looks similar to this old issue in plotly: plotly/plotly.js#942 but it's not related to WebGL nor any optimization. I have no idea how to debug this between your Angular wrapper and the plotly library. It's quite difficult to understand where the issue is.
The text was updated successfully, but these errors were encountered: