小白学Python(10)——pyecharts 绘制仪表图 Gauge

1 from pyecharts import options as opts
2 from pyecharts.charts import Gauge, Page
3 
4 gauge=(
5      Gauge()
6      .add("", [("完成率", 66.6)])
7      .set_global_opts(title_opts=opts.TitleOpts(title="Gauge-基本示例"))
8      )
9 gauge.render('gauge.html')

 

posted @ 2019-08-22 17:04  徐海建  阅读(3966)  评论(0编辑  收藏  举报