实例代码
from pyecharts.charts import Gauge,Page
from pyecharts import options as opts
c = Gauge() # 绘制仪表盘图
# 设置仪表盘数据、颜色
c.add("业务指标",[("完成率",60)],axisline_opts=opts.AxisLineOpts
(linestyle_opts=opts.LineStyleOpts(color=[(0.3,"#67e0e3"), (0.7,"#37a2da"),(1,"#fd666d")],width=30)))
# 全局参数设置
c.set_global_opts(title_opts=opts.TitleOpts(title="Gauge - 不同颜色"),legend_opts=opts.LegendOpts(is_show=False))
# c.render_notebook() # 在jupyter notebook中显示图表
c.render()