I am trying to replicate the below plot using plotly.
I have plotted the data points as separate traces using
go.Scatter but I am not sure how I can show the line connecting the three points as shown in above image. Check out my below code.
high = [5,3,8,6] mid = [3.5,2,5.5,4] low = [2,1,3,2] x=[10,20,30,40] fig = go.Figure() fig.add_trace(go.Scatter(x=x, y=high, mode='markers', name='High', marker_color='#c92a52', marker_symbol='triangle-down', marker_size=15)) fig.add_trace(go.Scatter(x=x, y=mid, mode='markers', name='Mid', marker_color='black', marker_symbol='x-thin', marker_line_width=3)) fig.add_trace(go.Scatter(x=x, y=low, mode='markers', name='Low', marker_color='#4d70c9', marker_symbol='triangle-up', marker_size=15)) fig.update_layout(template='presentation') fig.show()
How can I show the line connecting the three markers (High, Mid, Low) ? Thanks in advance !