Plotly-express-15-plotly实现水平柱状图(h)
本文中介绍的是如何在plotly中实现水平方向的柱状图:
px.bar(oritention=“h”)
go.Bar(oritention...Horizontal Bar Chart with Plotly Express
demo
import plotly.express as px
df = px.data.tips()
fig = px.bar...>agree', 'Agree', 'Neutral', 'Disagree',
'Stronglydisagree', 'Giveup']
# 每行数据中每个框的颜色...)', 'rgba(164, 163, 204, 0.85)',
'rgba(190, 192, 213, 1)','rgba(224, 210, 240, 10)']
# xy的数据...10, 15, 11],
[7, 26, 23, 11, 13, 20],
[29, 10, 15, 18, 14, 14],
]
# 左侧的属性