【发布时间】:2020-04-28 22:22:57
【问题描述】:
我正在尝试将默认的 plotly 模板更改为“seaborn”或“plotly_dark”。虽然它在 plotly 中有效,但在使用 plotly 的 Dash 中似乎不起作用。即使在指定 template='plotly_dark' 后,它仍然显示默认的 plotly 模板。
这里是没有指定模板的代码:
return dcc.Graph(
id='example-graph',
figure={
'data': [
{'x': df_most_lines.Cast, 'y': df_most_lines.Lines, 'type': 'bar', 'name': 'input_data'}
],
'layout': { 'paper_bgcolor':'rgba(0,0,0,0)',
'plot_bgcolor':'rgba(0,0,0,0)',
'title': 'WHO USED THE MOSE LINES?'
}
}
)
【问题讨论】:
标签: python plotly-dash