I have made a scatterplot using Plotly (python), and i want to connect the dots using something similar to geom_smooth() function.
Something like below image :

You should be able to do it by setting the shape='spline' when defining the line. here is the plotly example
trace2 = go.Scatter(
x=[1, 2, 3, 4, 5],
y=[6, 8, 7, 8, 6],
mode='lines+markers',
name="'spline'",
text=["tweak line smoothness<br>with 'smoothing' in line object"],
hoverinfo='text+name',
line=dict(
shape='spline'
)
)
See an example here: plotly line charts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With