mirror of
https://github.com/pyecharts/pyecharts.git
synced 2025-12-08 20:59:23 +00:00
Map documentation update (#466)
* 📚 update maps * 📚 update the jupyter faq
This commit is contained in:
parent
6f62ca26e8
commit
abcbd080ff
@ -42,8 +42,10 @@ Here is a list of map extensions from pyecharts dev team:
|
||||
1. [World countries include China map and World map](https://echarts-maps.github.io/echarts-countries-js/): [echarts-countries-pypkg](https://github.com/pyecharts/echarts-countries-pypkg) (1.9MB)
|
||||
2. [Chinese provinces and regions](https://echarts-maps.github.io/echarts-china-provinces-js/): [echarts-china-provinces-pypkg](https://github.com/pyecharts/echarts-china-provinces-pypkg) (730KB)
|
||||
3. [Chinese cities](https://echarts-maps.github.io/echarts-china-cities-js/): [echarts-china-cities-pypkg](https://github.com/pyecharts/echarts-china-cities-pypkg) (3.8MB)
|
||||
3. [Custom Chinese regions](https://echarts-maps.github.io/echarts-china-misc-js/): [echarts-china-cities-pypkg](https://github.com/pyecharts/echarts-china-misc-pypkg) (148KB)
|
||||
3. [United Kingdom map](https://echarts-maps.github.io/echarts-united-kingdom-js/): [echarts-china-cities-pypkg](https://github.com/pyecharts/echarts-united-kingdom-pypkg) (1MB)
|
||||
4. [Chinese counties](https://echarts-maps.github.io/echarts-china-counties-js/): [echarts-china-counties-pypkg](https://github.com/pyecharts/echarts-china-counties-pypkg) (4.1MB)
|
||||
5. [Custom Chinese regions](https://echarts-maps.github.io/echarts-china-misc-js/): [echarts-china-misc-pypkg](https://github.com/pyecharts/echarts-china-misc-pypkg) (148KB)
|
||||
6. [United Kingdom map](https://echarts-maps.github.io/echarts-united-kingdom-js/): [echarts-united-kingdom-pypkg](https://github.com/pyecharts/echarts-united-kingdom-pypkg) (1MB)
|
||||
|
||||
|
||||
In order to install them, you can try one of them or all:
|
||||
|
||||
@ -51,6 +53,7 @@ In order to install them, you can try one of them or all:
|
||||
$ pip install echarts-countries-pypkg
|
||||
$ pip install echarts-china-provinces-pypkg
|
||||
$ pip install echarts-china-cities-pypkg
|
||||
$ pip install echarts-china-counties-pypkg
|
||||
$ pip install echarts-china-misc-pypkg
|
||||
$ pip install echarts-united-kingdom-pypkg
|
||||
```
|
||||
|
||||
@ -9,17 +9,19 @@
|
||||
1. [全球国家地图](https://echarts-maps.github.io/echarts-countries-js/): [echarts-countries-pypkg](https://github.com/pyecharts/echarts-countries-pypkg) (1.9MB): 世界地图和 213 个国家,包括中国地图
|
||||
2. [中国省级地图](https://echarts-maps.github.io/echarts-china-provinces-js/): [echarts-china-provinces-pypkg](https://github.com/pyecharts/echarts-china-provinces-pypkg) (730KB):23 个省,5 个自治区
|
||||
3. [中国市级地图](https://echarts-maps.github.io/echarts-china-cities-js/): [echarts-china-cities-pypkg](https://github.com/pyecharts/echarts-china-cities-pypkg) (3.8MB):370 个中国城市
|
||||
4. [中国县区级地图](https://echarts-maps.github.io/echarts-china-cities-js/): [echarts-china-cities-pypkg](https://github.com/pyecharts/echarts-china-cities-pypkg) (4.1MB):2882 个中国县·区
|
||||
5. [中国区域地图](https://echarts-maps.github.io/echarts-china-cities-js/): [echarts-china-cities-pypkg](https://github.com/pyecharts/echarts-china-cities-pypkg) (148KB):11 个中国区域地图,比如华南、华北。
|
||||
|
||||
需要这些地图的朋友,可以装 pip 命令行:
|
||||
特别注明,中国地图在 echarts-countries-pypkg 里。需要这些地图的朋友,可以装 pip 命令行:
|
||||
|
||||
```
|
||||
pip install echarts-countries-pypkg
|
||||
pip install echarts-china-provinces-pypkg
|
||||
pip install echarts-china-cities-pypkg
|
||||
pip install echarts-china-counties-pypkg
|
||||
```
|
||||
|
||||
特别注明,中国地图在 echarts-countries-pypkg 里。
|
||||
|
||||
除此之外,[英国2016选区图](https://echarts-maps.github.io/echarts-united-kingdom-js/): [echarts-united-kingdom-pypkg](https://github.com/pyecharts/echarts-united-kingdom-pypkg) (1MB): 英国选区图可以用来画与政治经济相关的数据。
|
||||
|
||||
## 如何制作自己的地图扩展
|
||||
|
||||
|
||||
@ -97,4 +97,9 @@ A:目前 pyecharts 暂时未开放这部分的API,没有考虑到打包后的
|
||||
|
||||

|
||||
|
||||
A: 因为 china.js 没有加载成功。请检查 echarts-countries-pypkg 是不是已经装了,安装方法参考 [README](https://github.com/pyecharts/pyecharts/blob/master/README.md)。如果是 jupyter 的环境的话, 请检查能否正确访问 http://localhost:8888/nbextensions/echarts-countries-js/china.js
|
||||
A: 因为 china.js 没有加载成功。请检查 echarts-countries-pypkg 是不是已经装了,安装方法参考 [README](https://github.com/pyecharts/pyecharts/blob/master/README.md)。如果是 jupyter 的环境的话, 请检查能否正确访问 http://localhost:8888/nbextensions/echarts-countries-js/china.js
|
||||
|
||||
|
||||
如果你把地图全部装了的画,在你开新的 notebook 的时候, jupyter 的 javascript console 会有这个显示:
|
||||
|
||||

|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user