python from pyecharts import options as opts from pyecharts.charts import Pie python python pie = ( Pie() .add("", data) .set_colors(["red", "blue", "green", "orange"]) .set_series_opts(label_opts=opts.LabelOpts(formatter="{b}: {c}")) ) python pie.render("pie_chart.html") python from pyecharts import options as opts from pyecharts.charts import Pie pie = ( Pie() .add("", data) .set_colors(["red", "blue", "green", "orange"]) .set_series_opts(label_opts=opts.LabelOpts(formatter="{b}: {c}")) ) pie.render("pie_chart.html")


上一篇:
下一篇:
切换中文