


Perhaps because the attributes for trace not only differ in color? And to my knowledge there is not yet a description on how to do that efficiently. See for example Plotly: How to define colors in a figure using aph_objects and plotly.express?īut it seems that you would explicitly like to add traces without using a loop. Many questions on the topic of plotly colors have already been asked and answered. Layout53 = go.Layout(xaxis=,įigure53 = go.Figure(data=data53, layout=layout53) How can i use a pallet colour for code below and dont get more random colors? groups53 = oupby(by='Area')ĭataframe53 = dataframe53.sort_values(by=, ascending=False) However the only way that i know to apply different colours for each trace is using a randon function that ger a numerico RGB for color.īut random color are not good to presentations. I using code below to generate chart with multiple traces.
