pyecharts学习笔记——仪表盘

仪表盘

#仪表盘
from pyecharts import options as opts
from pyecharts.charts import Gauge, Page



c = (
        Gauge()
        .add("",
             [("完成率", 66.67)]
             #设置颜色
            #,axisline_opts=opts.AxisLineOpts(linestyle_opts=opts.LineStyleOpts(color=[(0.3, "#67e0e3"), (0.7, "#37a2da"), (1, "#fd666d")], width=30))
            )
        .set_global_opts(title_opts=opts.TitleOpts(title="仪表盘示例"))
)
c.render_notebook()

pyecharts学习笔记——仪表盘_第1张图片

你可能感兴趣的:(pyecharts学习笔记——仪表盘)