Repository navigation
gl2d known limitations #130
Copy link
Copy link
Closed
Description
A list of known limitations in gl2d graphs in comparison with svg2d feature set:
- image export isn't reliable (meaning gl2d graphs have no image test support)
- scatter
mode: 'text'(for text charts) is not available - 'free' axes and 'overlaying' axes are not available. But subplots, insets, shared axes work. Hurdles: free axes with custom 'position' would need an option to make a gap between the data-box and the axis in gl-plot2d, overlaying axes would need more logic around when to show grid lines, scene backgroud color and have hover events propagate down. ✅ Fixed with regl.
- data-reference annotations/shapes are not available (paper-reference annotations/shapes work)
- fill options
tonexty,tonexty, andtoselfare not avaliable (tozeroxandtozeroywork) ✅ Fixed with regl. - the
marker.symbolis pretty good sincev1.28.0but not on-par with svg ✅ Fixed with regl. - px-specified
line.dashare not available - no
line.shape: 'spline'update:'hv', 'vh', 'hvh', 'vhv'added in Scattergl improvements for: fill tozero with bad values fix, fills layering fix, add some line.shape values #3087 - axis titles are not centered (positioning algo does not consider text width)
- tick marks don't support
\n(most common in date axes) - axes don't support decreasing (custom or with
autorange: 'reversed') ranges. ✅ Fixed with regl. - hovermode
xandyare not available (toggling hover on/off in modebar works). ✅ Fixed with regl. - no support for axis
fixedrange(would need to tweak gl-select-box). ✅ Fixed with regl. - double click and shift click interactions are not supported. ✅ Fixed with regl.
- cartesian + gl2d subplot on the same graph are not supported. ✅ Fixed with regl.
-
plotly_hover,plotly_unhoverandplotly_clickare not emitted [done in Hover / unhover events on the 2d WebGL plots #994] - setting
hoverinfoto'none'should disable the hover spikes. ✅ Fixed with regl. - a hover spikes sometimes appears prematurely after initial
Plotly.plotcall - select box and lasso selections are not supported
- single-axis zoom/pan and corner zoom interactions are not supported
- zoom-box doesn't follow cursor outside the plot bounds (i.e. no cover slip). ✅ Fixed with regl.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
destradafilm commentedon May 26, 2017
can you also include ADD d3 events to
plotly_clickplotly_hoverplotly_unhoverevents? Same as non webgl version?mx2048 commentedon Dec 1, 2017
Also, no support for tags as to Scattergl.
For example,
layout = go.Layout(xaxis=dict(title='<b>Title</b>'))Title will not appear if enclosed in the tags.
etpinard commentedon Jan 8, 2018
Both will be fixed by @dfcreative 's regl-based
scattergl.etpinard commentedon Jan 8, 2018
@dfcreative quick question: is your implementation of
line.dashon-par with SVGscatter?etpinard commentedon Jan 8, 2018
... if so, the only remaining items in the list above are:
line.shape: 'spline'now in -> Addline.shape: 'spline'support to scattergl #3229pretty good 🎉
dy commentedon Jan 13, 2018
@etpinard dashes are not perfectly the same px-wise, but cover all SVG modes.
dy commentedon Jan 16, 2018
@etpinard dash patterns are covered by dd120ee:

etpinard commentedon Jan 17, 2018
A few more things that scattergl doesn't do quite right as of #2258:
hoveron: 'fills'now in -> Implementhoveron: 'fills'for scattergl and scatterpolargl #2887axis.layercliponaxismarker.colorscalenow in -> WebGL traces with marker color array don't propagate that color to hover labels #2953etpinard commentedon Jan 18, 2018
Writing down a couple more thoughts on future gl2d development. Some of these items may benefit from Github issue of their own down the road.
scatterandscattergluse the same set of rules e.g. we could say: for graphs with more than 1e5 don't considermarker.sizein auto-range computation. DONE in On-par autorange for scattergl #2404pointcloudto usingregl. Better yet, mergepointcloudfast data pass into ascatterglmode to allows fast updates.heatmapglandcontourgl? Canvas-basedheatmapis currently out-performingheatmapglin the latest Chrome version.contourglis full of bugs and offers little to no benefits compare to svgcontour. Perhaps we should just deprecate them.etpinard commentedon Jan 18, 2018
@dfcreative 's new regl-based
scatterglwas merged in #2258 and released inv1.33.0. We'll leave this issue open as a starting point to discuss future gl2d development, but we'll close off the On-par gl2d.cpsievert commentedon Feb 12, 2018
Not sure if y'all group
scattermapboxunder this category, but I would to see that supporthoveron='fill'as well!cpsievert commentedon Apr 9, 2018
Also
rangeslider:https://codepen.io/cpsievert/pen/JLwQyx
Edit: in -> #2627
etpinard commentedon Jul 4, 2019
Closing. Looks like all the remaining items have their own ticket.
If I missed something, please open a new ticket.