Limitations of line_shape='spline'

I noticed that this one is limited by data size. I am plotting line chart with multiple series (each wih 100 data points).

line_shape=‘spline’ would work up until 9 series but would return an error if I try to plot 10 or more.

ValueError: Invalid value of type ‘builtins.str’ received for the ‘shape’ property of scattergl.line Received value: ‘spline’ The ‘shape’ property is an enumeration that may be specified as: - One of the following enumeration values: [‘linear’, ‘hv’, ‘vh’, ‘hvh’, ‘vhv’]

Is there any way to circumvent this limitation?

The reason for this is that only the Scatter trace type accepts spline for line shape, Scattergl doesn’t.

If you use plotly express to create your figure, the default is to automatically switch between the two trace types depending on the number of points to render (above 100 points it picks Scattergl). You can change this default behaviour with the render_mode argument, set it to “svg” to draw spline with higher number of points.