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')