I'm working with Plotly to visualize wind data. Here I plotted the pie chart but I can't change the order of the legend. (I want to set 0-5 speed limit first and so on).Here are my code and output.
import pandas as pd
import plotly.express as px
fig = px.pie(df1,
values='Cat',
names='speed_kmhRange',
template="plotly_dark",
color_discrete_sequence= px.colors.sequential.Plasma_r)
fig.show()