Closed
Description
The example provided in the documentation for Label Aliases does not work as expected at MacOS.
import plotly.express as px
import pandas as pd
df = px.data.tips()
df = df[df.day.isin(['Sat', 'Sun'])].groupby(by='day', as_index=False).sum(numeric_only=True)
fig = px.bar(df, x="day", y="total_bill")
fig.update_xaxes(labelalias=dict(Sat="Saturday", Sun="Sunday"))
fig.show()
This is how it should look like:
And what it looks like when I run the code:
Plotly version - 5.14.1. Python 3.11.3
Metadata
Metadata
Assignees
Labels
No labels