mirror of
https://github.com/pyecharts/pyecharts.git
synced 2025-12-08 20:59:23 +00:00
15 lines
387 B
Python
15 lines
387 B
Python
# coding=utf-8
|
|
from example.commons import Faker
|
|
from pyecharts import options as opts
|
|
from pyecharts.charts import Geo
|
|
|
|
|
|
def geo_base():
|
|
c = (
|
|
Geo()
|
|
.add("geo", [list(z) for z in zip(Faker.provinces, Faker.values())])
|
|
.set_global_opts(visualmap_opts=opts.VisualMapOpts())
|
|
.set_series_opts(label_opts=opts.LabelOpts(is_show=False))
|
|
)
|
|
return c
|