我已经在 plotly 上做了这个图
我想删除空白,只显示有值的 x,并隐藏没有任何值的 x
我该怎么做?
这是我的代码:
go.Bar(name=i,x=listeDepartement,y=listePPA))
fig = go.Figure(data=bar)
fig.update_layout(barmode='stack')
fig.write_html('histogram.html',auto_open=True)
fig.show()
Run Code Online (Sandbox Code Playgroud)