Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add axis labels to a plotly barchart

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()
Source by plotly.com #
 
PREVIOUS NEXT
Tagged: #add #axis #labels #plotly #barchart
ADD COMMENT
Topic
Name
2+9 =