6.2.2 Advanced Bar Chart
1. Horizontal Bar
In chapter 6.1.1 we have shown several regular bar charts. To make a horizontal bar is very intuitive, you just need to add a 'orientation='h'
import plotly.express as px
import plotly.graph_objects as godf = px.data.tips()
fig = px.bar(df, x="total_bill", y="day", orientation='h')
fig.show()

2. Relative Bar

3. Customized Bar



Last updated
Was this helpful?