Changing label of plotly express facet categories


When creating a chart with Plotly Express and using either legend by color or a facet, the names of the facets or legends show the variable as well as the value, e.g. in the example below, “day=Thur” or "smoker=“Yes”

If I want them just to say “Thur” or “Yes” in those examples, what’s the easiest way to do that?


1 Like

I’m also curious about this.

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online