pyecharts绘制地图可视化
pyecharts: 官方文档 我们这里使用pyecharts模块进行绘图。 pyecharts 项目包含了一系列的地理地图数据,这些数据或者已经内置,或者需要额外安装和加载,我们需要下载下面六个包。 选择自己需要的安装 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 pyecharts中Geo表达和城市关联的数据,Map表达和国家和省份关联的数据。 世界地图 from pyecharts import Map, Geo # 世界地图数据 value = [95.1, 23.2, 43.3, 66.4, 88.5 ] attr = [ " China " , " Canada " , " Brazil " , " Russia " , " United States " ] map0 = Map( " 世界地图示例 " , width=1200