I’m adding two traces on a scatterpolar graph. The two scatter graphs have few non-overlapping theta values. I need to connect the data points of each scatter graph. The data points of the first graph (blue in screen shot) is connected based on the alphabetical order of theta values which is the same as the order for theta angles. When the second graph is added with new theta values (Orange graph), those new theta values are positioned randomly around the circle and therefore by connecting the data points I won’t get a proper spider shape. I would like to know how can I force all the theta values to be positioned around the circle alphabetically?

fig.add_trace(

go.Scatterpolar(

r=dff2[“RESULT_VALUE”],

theta=dff2[“attribute”],

line_color=descr_color,

name=caption,

hovertext=[description],

)

)