📜  增加“条形宽度”“px.bar” - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:21.517000             🧑  作者: Mango

代码示例1
import plotly.express as px

fig = px.bar(x = ['a', 'b', 'c'], y = [5, 10, 12])

for data in fig.data:
    data["width"] = 0.15 #Change this value for bar widths
    
fig.show()