mirror of
https://github.com/pyecharts/pyecharts.git
synced 2026-01-25 17:06:27 +00:00
* 🐴 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
13 lines
313 B
Python
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()
|