Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 554 Bytes

145.md

File metadata and controls

23 lines (18 loc) · 554 Bytes
@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%

[上一个例子](144.md) [下一个例子](146.md)