pyecharts/test/test_geo.py
陈键冬 3172dff53a
Update: set_series_opts 新增 kwargs,允许传入任意变量 (#1090)
* Update: set_series_opts 新增 kwargs,允许传入任意变量

* Update: 统一测试 eq_ 方式

* Docs: update
2019-05-08 10:44:59 +08:00

19 lines
500 B
Python

from nose.tools import eq_
from example.commons import Faker
from pyecharts import options as opts
from pyecharts.charts import Geo
def test_geo_base():
c = (
Geo()
.add_schema(maptype="china")
.add("geo", [list(z) for z in zip(Faker.provinces, Faker.values())])
.set_series_opts(label_opts=opts.LabelOpts(is_show=False))
.set_global_opts(visualmap_opts=opts.VisualMapOpts())
)
eq_(c.theme, "white")
eq_(c.renderer, "canvas")
c.render()