-
-
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
webgl dashed lines don't display correctly #2946
Comments
cc @dy |
Oh! That is an issue of the old gl-line2d too: |
That seems to be non-trivial to implement O(c) version of it. A segment pattern offset depends on previous segment's length, which depends on previous segment length etc, ie. patterns are linked. When it comes to rescaling - every dataRange change we have to recalculate all segments lengths. That is ok for short lines, but heavy for thousands of points, ie. that makes updating complexity O(n). |
The image below & this demo could be used to illustrate the differences between dash lines in |
Since you mentioned line width, if we're truly going for parity check out the logic used in SVG-land, in plotly.js/src/components/drawing/index.js Lines 168 to 185 in f0f9a86
|
Is there any progress on this bug? Currently using anything except solid line is pretty unusable in webgl. |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
The blue scattergl dashed line spacing is broken. The dashes are inconsistently spaced.
Orange is the same data as svg for comparison (expected result).
Sample: https://codepen.io/anon/pen/oPxOgJ
Checked in firefox and chrome on mac with similar results.
The text was updated successfully, but these errors were encountered: