Pycharts在测试工作中的应用
pycharts是一个基于Python的数据可视化库,支持多种折线图、柱状图、饼图等。Pycharts底层依赖于Echarts
pip install pycharts
from pyecharts.charts import Pie
from pyecharts import options as opts
pie = Pie()
pie.add("", [("建议", 33), ("一般", 45), ("严重", 20), ("致命", 2)])
pie.set_global_opts(title_opts=opts.TitleOpts(title="缺陷严重级别统计"))
pie.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}: {c} ({d}%)"))
pie.render()
标签:set,pyecharts,测试,pie,Pycharts,pycharts,应用,opts
From: https://www.cnblogs.com/djl-0628/p/17551676.html