【Python】【Chart】图标绘制/地图生成

官网(JS):https://echarts.apache.org/zh/index.html

官网(Python):https://pyecharts.org/#/zh-cn/geography_charts?id=map%ef%bc%9a%e5%9c%b0%e5%9b%be

 在Vue中使用echarts:https://www.jianshu.com/p/cf0a54374419 

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@Time    :
@Author  :
@File    :
@Version :1.0
@Function:

官方文档:https://pyecharts.org/#/zh-cn/geography_charts?id=map%ef%bc%9a%e5%9c%b0%e5%9b%be

"""
from pyecharts.charts import Map

"""
说明:要生成哪里的地图(如:成都、四川) 填的值 可参考pyecharts.datasets.map_filenames.json文件
"""
# 生成一个成都的地图
cd = (
    Map()
        .add(None, [[None, None]], '成都')
        .render('cd.html')
)
# 生成一个四川的地图
sc = (
    Map()
        .add(None, [[None, None]], '四川')
        .render('sc.html')
)

如果忍耐算是坚强 我选择抵抗 如果妥协算是努力 我选择争取
原文地址:https://www.cnblogs.com/danhuai/p/15513530.html