如何更改条形图中特定条形的颜色。例如,我想将颜色更改为紫色,更改为德国牧羊犬(来自品种)。
fig = px.bar(data_frame=df, x="quantity", y="dogs", orientation='h', color='dogs',hover_name='breed',)
谢谢。
python pandas plotly plotly-express
pandas ×1
plotly ×1
plotly-express ×1
python ×1