Hi. I created two plots and would like to use the same colour scheme for both of them. However the plots use different colour schema (colours for categories) for graphs. I was trying to get my head around to fix this but to no avail so far. How can I force the plotly to use the same colors for both graphs? Iād greatly appreciate any help!
Hi.
You can fix this by explicitly setting the colors when you define each figure.
-
Customizing pie chart slices:
Pie Charts | Python | Plotly -
Customizing individual bar colors:
Bar Charts | Python | Plotly