pyecharts/example/echarts_countries_js_example.py
jaska bd6b0ba66e Optimize extra map registry.json (#1172)
* 🐴 no long github url is required in registry.json. and English name can stay outside pinyin_map

*  illustrate the usage of external map packages

* Format: code
2019-06-06 12:52:56 +08:00

13 lines
313 B
Python

from pyecharts import options as opts
from pyecharts.charts import Geo
from pyecharts.datasets import register_url
register_url("https://echarts-maps.github.io/echarts-countries-js/")
g = (
Geo()
.add_schema(maptype="瑞士")
.set_global_opts(title_opts=opts.TitleOpts(title="瑞士"))
)
g.render()