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
restyle of marker opacity not working for scattergl #2299
Interestingly Plotly.restyle(gd, {"marker.opacity": 0.1}); seems to work fine, as does the trace.opacity attribute on the initial draw - it's just Plotly.restyle(gd, {"opacity": 0.1}); that fails.
@dfcreative you probably just have to explicitly define opacity in scattergl/attributes, like we do in eg surface/attributes so you can get editType: 'calc' instead of editType: 'style' that you get from the base opacity attribute. And assuming that fixes it, take a quick spin through the rest of those base attributes and see if anything else is broken the same way.
@alexcjohnson thank, fixed in a9d387a. Making ScatterGl.styleto do options recalculation (that is required to update opacity, since resulting opacity depends on trace.opacity, marker.opacity and color alpha) would be unnecessary complexity and mostly duplication.
Activity
alexcjohnson commentedon Jan 25, 2018
Interestingly
Plotly.restyle(gd, {"marker.opacity": 0.1});seems to work fine, as does thetrace.opacityattribute on the initial draw - it's justPlotly.restyle(gd, {"opacity": 0.1});that fails.@dfcreative you probably just have to explicitly define
opacityinscattergl/attributes, like we do in egsurface/attributesso you can geteditType: 'calc'instead ofeditType: 'style'that you get from the base opacity attribute. And assuming that fixes it, take a quick spin through the rest of those base attributes and see if anything else is broken the same way.etpinard commentedon Jan 29, 2018
Better yet, maybe we could make
ScatterGl.stylehandle trace opacity updates.dy commentedon Jan 31, 2018
@alexcjohnson thank, fixed in a9d387a. Making
ScatterGl.styleto do options recalculation (that is required to update opacity, since resulting opacity depends on trace.opacity, marker.opacity and color alpha) would be unnecessary complexity and mostly duplication.etpinard commentedon Feb 2, 2018
fixed in #2311