I have a pandas dataframe of electricity generation mix. So it consists of electricity generation by different fuels. I want to assign a specific color to a specific fuel.
In Matplotlib, it is convenient to assign a specific color to a specific category by passing a list of colors, e.g.
I wasn't able to assign color similarly for plots using Plotly. What would be the best way to assign specific color to specific categories in Plotly?


