has anyone by any chance come up w a pattern for always adding the same color to a certain label in a pie/bar chart so that plotly doesnt automatically assign colors regardless of the order that they are in in the dataframe?
animals = ['Bear', 'Cat', 'Turtle', 'Dog']
The first color plotly chooses automatically would be orange (this probably isnt true btw) so it assigns it to ‘Bear’ btu what if i wanted ‘Bear’ to always be red even if animals looked like this instead:
animals = ['Dog', 'Turtle', 'Cat', 'Bear']
I’d like ‘Dog’ to always be blue, ‘Cat’ is always green, instead of having whatever is first in the list always be orange, for example