You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scattergl fill tozerox/y doesn't work as expected #1334
scattergl fill tozeroy fills to lowest y value rather than 0 and behaves inconsistently from scatter fill which uses the trace as a bound (see codepen: http://codepen.io/plotly/pen/apyXpW?editors=1010 )
Additionally, we need to fix the attribute description for scattergl fill - it should be different from scatter's fill.
Activity
etpinard commentedon Aug 18, 2017
maybe we should try to make a push for this in #1869
cc @dfcreative
zhangjiang2013 commentedon Sep 29, 2017
Also, the "toself" fill option doesn't work as expected. The enclosed area isn't filled.
dy commentedon Oct 1, 2017
Yes, regl-line2d is capable of filling any shapes now, so fully svg-compatible in that sense. We can cover these cases.
etpinard commentedon Jan 8, 2018
@dfcreative 's regl-based
scatterglwork will get us very close to parity with SVGscatter.I found a few discrepancies:
From https://rreusser.github.io/plotly-mock-viewer/#scatter_fill_no_opacity, applying
Plotly.restyle(gd, 'type', 'scattergl')gives:In https://rreusser.github.io/plotly-mock-viewer/#scatter_fill_self_next, it appears that the bounding lines coloring in gl is blended a little bit. See svg:
vs gl (ignore the lack of
line.shape)dy commentedon Jan 13, 2018
@etpinard 3b08da1 should fix both. Although https://rreusser.github.io/plotly-mock-viewer/#scatter_fill_no_opacity does not fail now, it requires detailed consideration. I get

although regular

scattergives (the case of creased shape)I guess that should be addressed in a separate issue.
dy commentedon Jan 18, 2018
Added mock test d3fd7d2

etpinard commentedon Jan 18, 2018
I'm going to close this thing as the issue title refers to to-zero fills which are fixed in #2258
For more fill open items, see #130