利用python写一个仪表盘

pyecharts需要下载,pip install pyecharts

#导入仪表盘Gauge模块
from pyecharts import Gauge

#建立实例gauge
gauge = Gauge(‘仪表盘示例’)

gauge.add(
#配置参数如下

图标标题

'业务指标',

#指针名称
‘完成率’,

#完成率
66.66,

#仪表盘图起始角度
angle_range=[180,0],

#最大值,最小值
scale_range=[0,100],

#标题是否显示
is_legend_show=False,
)

gauge
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/zhige1112/article/details/89361920