📜  plotly express 条形图 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:23.934000             🧑  作者: Mango

代码示例1
import plotly.graph_objects as go
animals=['giraffes', 'orangutans', 'monkeys']

fig = go.Figure(data=[
    go.Bar(name='SF Zoo', x=animals, y=[20, 14, 23]),
    go.Bar(name='LA Zoo', x=animals, y=[12, 18, 29])
])
# Change the bar mode
fig.update_layout(barmode='group')
fig.show()