mirror of
https://github.com/pyecharts/pyecharts.git
synced 2026-01-25 17:06:27 +00:00
17 lines
404 B
Python
17 lines
404 B
Python
from nose.tools import eq_
|
|
|
|
from example.commons import Faker
|
|
from pyecharts import options as opts
|
|
from pyecharts.charts import Pie
|
|
|
|
|
|
def test_pie_base():
|
|
c = (
|
|
Pie()
|
|
.add("", [list(z) for z in zip(Faker.choose(), Faker.values())])
|
|
.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}: {c}"))
|
|
)
|
|
eq_(c.theme, "white")
|
|
eq_(c.renderer, "canvas")
|
|
c.render()
|