forked from pyecharts/pyecharts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize extra map registry.json (pyecharts#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
- Loading branch information
1 parent
7e45d79
commit bd6b0ba
Showing
5 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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-china-counties-js/") | ||
|
||
g = ( | ||
Geo() | ||
.add_schema(maptype="海淀区") | ||
.set_global_opts(title_opts=opts.TitleOpts(title="海淀区")) | ||
) | ||
g.render() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters