python-small-examples

@author jackzhenguo
@desc
@tag
@version 
@date 2020/02/12
from pyecharts import charts

# 仪表盘
gauge = charts.Gauge()
gauge.add('Python小例子', [('Python机器学习', 30), ('Python基础', 70.),
                        ('Python正则', 90)])
gauge.render(path="./data/仪表盘.html")
print('ok')

仪表盘中共展示三项,每项的比例为30%,70%,90%,如下图默认名称显示第一项:Python机器学习,完成比例为30%

[上一个例子](/python-small-examples/md/144.html) [下一个例子](/python-small-examples/md/146.html)