You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
410 B
13 lines
410 B
from pyecharts import options as opts
|
|
from pyecharts.charts import Pie
|
|
from pyecharts.faker import Faker
|
|
|
|
c = (
|
|
Pie()
|
|
.add("", [list(z) for z in zip(Faker.choose(), Faker.values())])
|
|
.set_global_opts(title_opts=opts.TitleOpts(title="Pie-基本示例"))
|
|
.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}: {c}"))
|
|
.render("pie_base.html")
|
|
# .dump_options()
|
|
)
|
|
# print(c) |