Px.bar graph axis label alias not working

Hello!

I’m following the example shown in this page for configuring axis label alias:

I’ve upgraded my plotly to 5.14.1, one version newer compared to when this feature was incorporated, but the feature still doesn’t work.

image

Is there another version requirement for this feature to work? Anyone else has been through the same problem?

This is how it should look like:

This is how it’s appearing in my app:

image

Hey,

Would you mind sharing your code? Is this the format you’re currently following?

import plotly.express as px
df = px.data.tips()
fig = px.scatter(df, x="total_bill", y="tip", color="sex",
    labels=dict(total_bill="Total Bill ($)", tip="Tip ($)", sex="Payer Gender")
)
fig.show()

Best,
Eliza

Hi, I suppose you are using a mac?
There seems to be a bug, see also: