Similar to seaborn's hue function in plotly

A post was split to a new topic: Help with a grouped bar chart