【发布时间】:2021-01-02 05:30:04
【问题描述】:
我已经按照这里的参考: enter link description here
但是一旦我将“网格”从 2x2 更改为 3x3 ,它就会变得一团糟
> fig.update_layout(
> grid = {'rows': 3, 'columns': 3, 'pattern': "independent"},
> template = {'data' : {'indicator': [{
> 'title': {'text': "Speed"},
> 'mode' : "number+delta+gauge",
> }]
> }})
对于子图,它似乎不支持指标类型,尝试使用子图时出错
ValueError: Trace type 'indicator' is not compatible with subplot type 'xy' at grid position (1, 1) See the docstring for the specs argument to plotly.subplots.make_subplots for more information on subplot types
【问题讨论】: