79214109

Date: 2024-11-22 08:07:02
Score: 0.5
Natty:
Report link

Use mode='markers+lines' and additional attribute marker=dict(size=sizes1)
In my case I mark only value contain (2,6,9)

sizes1 = [10 if y in (2,6,9) else 0 for y in seed1_y_data]

trace1=go.Scatter(x=x_data,y=seed1_y_data,mode='markers+lines',name='Team A'
                  ,marker=dict(size=sizes1))

data=[trace1]
layout=go.Layout(title='This is line chart',
                 xaxis={'title':'this x axis'},
                 yaxis={'title':'this y axis'},
                 )
fig=go.Figure(data=data,layout=layout)

pyo.plot(fig,filename='line.html')

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shahidul Islam Molla