plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Add `line.shape: 'spline'` support to scattergl

Open brian428 opened this issue 7 years ago • 10 comments

It looks like "spline" is missing from the ScatterGL attributes file for line shape options: https://github.com/plotly/plotly.js/blob/master/src/traces/scattergl/attributes.js#L51

brian428 avatar Nov 08 '18 17:11 brian428

Part of https://github.com/plotly/plotly.js/issues/130, but yeah this now deserves an issue of its own.

etpinard avatar Nov 08 '18 17:11 etpinard

Oh, was "spline" never a valid option here?

brian428 avatar Nov 08 '18 17:11 brian428

No. 1.42.0 added line.shape to scattergl, but w/o the 'spline' value.

etpinard avatar Nov 08 '18 17:11 etpinard

I was reading #130 but I wonder if there is anything more specific to watch about the progress on "spline". (in the meantime I'm subscribed to this for updated)

danlabici avatar Feb 20 '19 08:02 danlabici

Any news on this? Using plotly express line chart with dash. The graph is initially loaded with the 'spline' format but on a callback it fails due to scattergl.line not having 'spline' as a shape property

Sagaulf avatar Sep 20 '19 09:09 Sagaulf

Same issue here as @Sagaulf This seems like a bug, because the Plotly Express docs don't mention this constraint at all.

ZeroCool2u avatar Nov 07 '19 17:11 ZeroCool2u

Also wondering if there is a fix for this... it seems like in plotly express 'spline' works with svg as the render_mode but not auto in some circumstances.

skoeb avatar Apr 25 '20 06:04 skoeb

I have the same problem. Furthermore, depending on the amount of data (if render_mode=auto) the render mode is switched from svg to webgl. So I currently have the situation when the spline sometimes works, sometimes does not...

patryk-oleniuk avatar May 03 '20 03:05 patryk-oleniuk

Furthermore, depending on the amount of data (if render_mode=auto) the render mode is switched from svg to webgl. So I currently have the situation when the spline sometimes works, sometimes does not...

I just spent quite awhile trying to figure out why I was getting an exception depending on how much data used, and it turned out to be this. Please fix this.

valankar avatar Jul 25 '22 15:07 valankar