Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

How can I hide the discrete color?

I created a stacked bar, and I want to keep the hover option but just remove the color bar next to it. I searched everywhere and tried a few options including hiding color scales and things I cannot remember now but none worked. Not sure if this is even possible… My code looks like this:

fig =, x="Genre", y="Global_Sales", color="Name",
fig.update_layout(template=None, xaxis={'categoryorder':'total descending'})

And this how looks like: