精华内容
下载资源
问答
  • 县以上行政区划代码各省行政区划代码
  • 1980至2018年全国各省直辖市自治区行政区划代码汇总 各省独立一份 行政区划代码=行政区划名称
  • 之前我爬了datav的地图选择器中全国省市区的geoJSON数据 为了获取最新省市区的行政区划代码用于级联组件,又爬了国家...province 文件夹是全国各省行政区划代码(文件名开头的两位数为各省行政区划代码前两位) provinc

    之前我爬了datav的地图选择器中全国省市区的geoJSON数据

    为了获取最新省市区的行政区划代码用于级联组件,又爬了国家统计局的内容

    点此查看

    index_2019_level_3.json:全国省市区 3 级 6 位行政区划代码

    index_2019_level_5.json:全国省市区县乡镇 5 级 12 位行政区划代码

    province 文件夹是全国各省行政区划代码(文件名开头的两位数为各省行政区划代码前两位)

    province/level_3 为各省 3 级 6 位行政区划代码
    province/ level_5 为各省 5 级 12 位行政区划代码

    getArea.py 为简易的爬虫脚本,需要修改爬取内容的见脚本说明

    脚本说明:

    # config #
    
    year = '2019'       # 年份,目前国家统计局官网有2009-2019年的数据
    level = 3           # 可选:3|5   获取的层级 3层为省-市-区  最多5级省-市-区-县(街道)-乡镇(居委会)
    digit = 6           # 可选:6|12  行政区划代码位数  层级为3级时通常使用6位代码 如110000,层级为5级时使用12位代码 如 110000000000
    head_url = "index"  # 可选:index|各省行政区划前两位  要从哪开始获取 index为全国所有省份  要获取单独的省份修改为省行政区划的前两位
    
    # config #
    

    按照注释修改 config 中的内容再运行脚本可以获取自己想要的结果

    展开全文
  • 自己整合的中国区县行政代码对照表,表格以属性结构整理,一级为数据,二级为市数据,三级为区县数据,合计3060条区县数据(包含省市)
  • 行政区划代码

    2013-03-19 22:38:18
    全国各省自治区域数字化循环代码,方便应届毕业生查阅,欢迎下载
  • province 文件夹是全国各省行政区划代码(文件名开头的两位数为各省行政区划代码前两位) province/level_3 为各省 3 级 6 位行政区划代码 province/ level_5 为各省 5 级 12 位行政区划代码 数据来源: getArea.py ...
  • 全国省市区县地理坐标json格式:{"":"吉林","市":"吉林市","县":"舒兰市","坐标":"126.965607,44.406106","类型代码":"190105"},{"":"黑龙江","市":"哈尔滨市","县":"宾县","坐标":"127.466634,45.745918...
  • 统计用区划代码和城乡划分代码所涉及的数据,是国家统计局开展统计调查所涉及的区划范围,未包括我国台湾、香港特别行政区、澳门特别行政区。统计用区划代码和城乡划分代码包括12位统计用区划代码、2位城乡属性...
  • 各级部门在使用统计用区划代码和城乡划分代码时,请务必结合实际情况。 五、补充编制开发区统计汇总识别码情况 为满足统计调查工作组织和数据汇总的需要,国家统计局对一些符合条件的开发区编制了统计汇总识别码...
  • 2017年11月最新版全国各省、市、区(县)、镇(乡)、村委会共5级行政区域数据(mysql数据库),含地区编码以及5级分级代码
  • (二)关于河北沧州市任丘市的苟庄镇、鄚州镇、七间房乡、保定市高阳县的龙化乡统计用区划代码临时调整情况的说明。按照河北省委、政府关于对雄安新区周边部分区域实施托管的通知要求,沧州市任丘市的苟庄镇...
  • 基于高德地图api,采用python程序代码抓取,包含广东省市县区级各行政区域划分图,结果为ship格式,可用arcgis进行空间可视化分析,针对gcj02坐标已经转为wgs1984坐标系。
  • 行政区划数字代码(简称数字码)采用三层六位层次码结构,按层次分别表示我国各省(自治区、直辖市、特别行政区),市(地区、自治州、盟)、县(自治县、县级市、旗、自治旗、市辖区、林区、特区)。 数字码码位...

    行政区划定义
    行政区划数字代码(简称数字码)采用三层六位层次码结构,按层次分别表示我国各省(自治区、直辖市、特别行政区),市(地区、自治州、盟)、县(自治县、县级市、旗、自治旗、市辖区、林区、特区)。

    数字码码位结构从左到右的含义是:
    第一层即前两位代码表示省、自治区、直辖市、特别行政区。

    第二层即中间两位代码表示市、地区、自治州、盟、直辖市所辖市辖区/县汇总码、省(自治区)直辖县级行政区划总码,其中:
    ----01~20/51~70表示市,01、02还用于表示直辖市所辖市辖区、县汇总码;
    ----21~50表示地区、自治州、盟;
    ----90表示省(自治区)直辖县级行政区划总码。

    第三层即后两位表示县、自治县、县级市、旗、自治旗、市辖区、林区、特区,其中
    ----01~20表示市辖区、地区(自治州、盟)辖县级市、市辖特区以及省(自治区)直辖县级行政区划中的县级市,01通常表示市辖区汇总码;
    ----21~80表示县、自治县、旗、自治旗、林区、地区辖特区;
    ----81~99表示省(自治区)辖县级市。

    江苏代码表







    全国其他地区行政区划表如下:
    链接:https://pan.baidu.com/s/1MBfF5V-XixiKPuL25XJ82Q 
    提取码:0qgq 

     

    ***让社会更安全,让生活更智能***

    展开全文
  • 基于国家统计局http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html的全国行政区域划分(省、市、县、乡、村),附件中包含了完整数据的MySQL脚本和各省的详细数据(xlsx)。如有需要可根据具体需求...
  • province 文件夹是全国各省行政区划代码(文件名开头的两位数为各省行政区划代码前两位) province/level_3 为各省 3 级 6 位行政区划代码 province/ level_5 为各省 5 级 12 位行政区划代码 数据来源:国家统计...
  • 《2014最新全国街道乡镇级以上行政区划代码表.xls》EXCEL表数据 《mysqlDB(全国各省、市、县、镇、村数).sql》MYSQL数据有131MB 导入到mysql可能出现的问题解决方案: http://blog.jjonline.cn/linux/116.html
  • 全国最新各省、市、县、镇、村数据库 下载包中包含以下内容: 《最新全国各省、市、县...《2014最新全国街道乡镇级以上行政区划代码表.xls》EXCEL表数据 《mysqlDB(全国各省、市、县、镇、村数).sql》MYSQL数据有131MB
    全国各省、市、县、镇、村数据库,详细到村的数据


    数据来源于http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2013/index.html
    CSDN说明:http://blog.csdn.net/datedateup/article/details/77163266
    CSDN下载:http://download.csdn.net/download/datedateup/9933071
    《最新全国各省、市、县、镇、村数据库.zip》



    下载包中包含以下内容:
    《最新全国各省、市、县、镇、村数据库说明.txt》操作说明
    《2014最新全国街道乡镇级以上行政区划代码表.xls》EXCEL表数据
    《mysqlDB(全国各省、市、县、镇、村数).sql》MYSQL数据有131MB






    导入到mysql可能出现的问题解决方案:
    http://blog.jjonline.cn/linux/116.html
    展开全文
  • 《2014最新全国街道乡镇级以上行政区划代码表.xls》EXCEL表数据 《mysqlDB(全国各省、市、县、镇、村数).sql》MYSQL数据有131MB 导入到mysql可能出现的问题解决方案: http://blog.jjonline.cn/linux/116.html
  • 湖北县级地名点

    2018-12-25 19:49:35
    该文档包含了湖北省县级地名点,地名点坐标,以及湖北省行政区划代码
  • //这是从国家统计局网站下载的全国行政区划代码,先把他转化为JSON对象, // 然后定义了一个place类,通过遍历这个JSON把所有地区都转化为place对象。 // 然后通过判断地区编码的特征,把所有place对象归类到三个...
  • china_town.gdb(1).rar

    2020-08-18 15:11:18
    全国各省乡镇行政区划地图数据乡镇边界矢量数据的全国乡镇行政区划数据,是结合野外实测资料,同时参照有关地理图件,采用人机交互的方式开展行政区划地图矢量化工作,最终获取的全国乡镇区划边界数据。主要包括省市乡...
  • 文章目录内容介绍使用的数据集Demo视频Demo案例中国基础地图指定广东地图省市数据区间显示地图世界地图00-18年中国GPD可视化图表中国自上世纪80年代全国省市GDP排名香港人口密度图全国省市地图地图不显示类别...

    内容介绍

    Python在处理各种数据时,利用图表 PyEcharts 将其可视化,提供直观、交互丰富、可高度个性化定制的数据可视化图表。以下是基于 Python3PyEchartsMap(地图) 图表可视化Demo的基础代码和视频演示。

    代码内容基于「Pyecharts 数据可视化」源码版本 1.7.x ,更新内容会进行标记说明对应版本。

    使用的数据集

    数据部分使用的是 PyEcharts 自带的数据演示数据字典,这部分的数据是随机进行选取,使用模板时将自己的数据直接替换成对应的内容即可。

    本文代码使用的是 Pyecharts 自带的数据集 Faker 数据集。
    对数据集不了解的请先阅读 「Python数据可视化AI教程」Pyecharts 中 Faker 数据集说明

    Demo视频

    由于目前在 CSDN 发现个问题,视频都放在这个页面一起加载一起播放会很乱。所以想看教学视频的请点击「Python数据可视化AI教程」Map(地图)15例,代码&教学视频

    Demo案例

    中国基础地图

    from pyecharts import options as opts
    from pyecharts.charts import Map
    from pyecharts.faker import Faker
    
    c = (
        Map()
        .add("Lab A", [list(z) for z in zip(Faker.provinces, Faker.values())], "china")
        .set_global_opts(title_opts=opts.TitleOpts(title="Map-base"))
    #     .render("map_base.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    指定广东省地图

    from pyecharts import options as opts
    from pyecharts.charts import Map
    from pyecharts.faker import Faker
    
    c = (
        Map()
        .add("Lab A", [list(z) for z in zip(Faker.guangdong_city, Faker.values())], "广东")
        .set_global_opts(
            title_opts=opts.TitleOpts(title="Map-guangdong"), visualmap_opts=opts.VisualMapOpts()
        )
    #     .render("map_guangdong.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    省市数据区间显示地图

    from pyecharts import options as opts
    from pyecharts.charts import Map
    from pyecharts.faker import Faker
    
    c = (
        Map()
        .add("Lab A", [list(z) for z in zip(Faker.provinces, Faker.values())], "china")
        .set_global_opts(
            title_opts=opts.TitleOpts(title="Map-VisualMap_piecewise"),
            visualmap_opts=opts.VisualMapOpts(max_=200, is_piecewise=True),
        )
    #     .render("map_visualmap_piecewise.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    世界地图

    from pyecharts import options as opts
    from pyecharts.charts import Map
    from pyecharts.faker import Faker
    
    c = (
        Map()
        .add("Lab A", [list(z) for z in zip(Faker.country, Faker.values())], "world")
        .set_series_opts(label_opts=opts.LabelOpts(is_show=False))
        .set_global_opts(
            title_opts=opts.TitleOpts(title="Map-world"),
            visualmap_opts=opts.VisualMapOpts(max_=200),
        )
    #     .render("map_world.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    00-18年中国GPD可视化图表

    data = [
        {
            "time": "2000年",
            "data": [
                {"name": "广东", "value": [10741.0, 10.88, "广东"]},
                {"name": "江苏", "value": [8554.0, 8.67, "江苏"]},
                {"name": "山东", "value": [8337.0, 8.45, "山东"]},
                {"name": "浙江", "value": [6141.0, 6.22, "浙江"]},
                {"name": "河南", "value": [5053.0, 5.12, "河南"]},
                {"name": "河北", "value": [5044.0, 5.11, "河北"]},
                {"name": "上海", "value": [4771.0, 4.83, "上海"]},
                {"name": "辽宁", "value": [4669.0, 4.73, "辽宁"]},
                {"name": "四川", "value": [3928.0, 3.98, "四川"]},
                {"name": "福建", "value": [3765.0, 3.81, "福建"]},
                {"name": "湖南", "value": [3551.0, 3.6, "湖南"]},
                {"name": "湖北", "value": [3545.0, 3.59, "湖北"]},
                {"name": "北京", "value": [3162.0, 3.2, "北京"]},
                {"name": "黑龙江", "value": [3151.0, 3.19, "黑龙江"]},
                {"name": "安徽", "value": [2902.0, 2.94, "安徽"]},
                {"name": "广西", "value": [2080.0, 2.11, "广西"]},
                {"name": "云南", "value": [2011.0, 2.04, "云南"]},
                {"name": "江西", "value": [2003.0, 2.03, "江西"]},
                {"name": "吉林", "value": [1952.0, 1.98, "吉林"]},
                {"name": "山西", "value": [1846.0, 1.87, "山西"]},
                {"name": "陕西", "value": [1804.0, 1.83, "陕西"]},
                {"name": "重庆", "value": [1791.0, 1.81, "重庆"]},
                {"name": "天津", "value": [1702.0, 1.72, "天津"]},
                {"name": "内蒙古", "value": [1539.0, 1.56, "内蒙古"]},
                {"name": "新疆", "value": [1364.0, 1.38, "新疆"]},
                {"name": "甘肃", "value": [1053.0, 1.07, "甘肃"]},
                {"name": "贵州", "value": [1030.0, 1.04, "贵州"]},
                {"name": "海南", "value": [527.0, 0.53, "海南"]},
                {"name": "宁夏", "value": [295.0, 0.3, "宁夏"]},
                {"name": "青海", "value": [264.0, 0.27, "青海"]},
                {"name": "西藏", "value": [118.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2001年",
            "data": [
                {"name": "广东", "value": [12039.0, 11.07, "广东"]},
                {"name": "江苏", "value": [9457.0, 8.69, "江苏"]},
                {"name": "山东", "value": [9195.0, 8.45, "山东"]},
                {"name": "浙江", "value": [6898.0, 6.34, "浙江"]},
                {"name": "河南", "value": [5533.0, 5.09, "河南"]},
                {"name": "河北", "value": [5517.0, 5.07, "河北"]},
                {"name": "上海", "value": [5210.0, 4.79, "上海"]},
                {"name": "辽宁", "value": [5033.0, 4.63, "辽宁"]},
                {"name": "四川", "value": [4293.0, 3.95, "四川"]},
                {"name": "福建", "value": [4073.0, 3.74, "福建"]},
                {"name": "湖北", "value": [3881.0, 3.57, "湖北"]},
                {"name": "湖南", "value": [3832.0, 3.52, "湖南"]},
                {"name": "北京", "value": [3708.0, 3.41, "北京"]},
                {"name": "黑龙江", "value": [3390.0, 3.12, "黑龙江"]},
                {"name": "安徽", "value": [3247.0, 2.99, "安徽"]},
                {"name": "广西", "value": [2279.0, 2.1, "广西"]},
                {"name": "江西", "value": [2176.0, 2.0, "江西"]},
                {"name": "云南", "value": [2138.0, 1.97, "云南"]},
                {"name": "吉林", "value": [2120.0, 1.95, "吉林"]},
                {"name": "山西", "value": [2030.0, 1.87, "山西"]},
                {"name": "陕西", "value": [2011.0, 1.85, "陕西"]},
                {"name": "重庆", "value": [1977.0, 1.82, "重庆"]},
                {"name": "天津", "value": [1919.0, 1.76, "天津"]},
                {"name": "内蒙古", "value": [1714.0, 1.58, "内蒙古"]},
                {"name": "新疆", "value": [1492.0, 1.37, "新疆"]},
                {"name": "贵州", "value": [1133.0, 1.04, "贵州"]},
                {"name": "甘肃", "value": [1125.0, 1.03, "甘肃"]},
                {"name": "海南", "value": [579.0, 0.53, "海南"]},
                {"name": "宁夏", "value": [337.0, 0.31, "宁夏"]},
                {"name": "青海", "value": [300.0, 0.28, "青海"]},
                {"name": "西藏", "value": [139.0, 0.13, "西藏"]},
            ],
        },
        {
            "time": "2002年",
            "data": [
                {"name": "广东", "value": [13502.0, 11.18, "广东"]},
                {"name": "江苏", "value": [10607.0, 8.78, "江苏"]},
                {"name": "山东", "value": [10276.0, 8.51, "山东"]},
                {"name": "浙江", "value": [8004.0, 6.62, "浙江"]},
                {"name": "河南", "value": [6035.0, 4.99, "河南"]},
                {"name": "河北", "value": [6018.0, 4.98, "河北"]},
                {"name": "上海", "value": [5741.0, 4.75, "上海"]},
                {"name": "辽宁", "value": [5458.0, 4.52, "辽宁"]},
                {"name": "四川", "value": [4725.0, 3.91, "四川"]},
                {"name": "福建", "value": [4468.0, 3.7, "福建"]},
                {"name": "北京", "value": [4315.0, 3.57, "北京"]},
                {"name": "湖北", "value": [4213.0, 3.49, "湖北"]},
                {"name": "湖南", "value": [4152.0, 3.44, "湖南"]},
                {"name": "黑龙江", "value": [3637.0, 3.01, "黑龙江"]},
                {"name": "安徽", "value": [3520.0, 2.91, "安徽"]},
                {"name": "广西", "value": [2524.0, 2.09, "广西"]},
                {"name": "江西", "value": [2450.0, 2.03, "江西"]},
                {"name": "吉林", "value": [2349.0, 1.94, "吉林"]},
                {"name": "山西", "value": [2325.0, 1.92, "山西"]},
                {"name": "云南", "value": [2313.0, 1.91, "云南"]},
                {"name": "陕西", "value": [2253.0, 1.86, "陕西"]},
                {"name": "重庆", "value": [2233.0, 1.85, "重庆"]},
                {"name": "天津", "value": [2151.0, 1.78, "天津"]},
                {"name": "内蒙古", "value": [1941.0, 1.61, "内蒙古"]},
                {"name": "新疆", "value": [1613.0, 1.34, "新疆"]},
                {"name": "贵州", "value": [1243.0, 1.03, "贵州"]},
                {"name": "甘肃", "value": [1232.0, 1.02, "甘肃"]},
                {"name": "海南", "value": [643.0, 0.53, "海南"]},
                {"name": "宁夏", "value": [377.0, 0.31, "宁夏"]},
                {"name": "青海", "value": [341.0, 0.28, "青海"]},
                {"name": "西藏", "value": [162.0, 0.13, "西藏"]},
            ],
        },
        {
            "time": "2003年",
            "data": [
                {"name": "广东", "value": [15845.0, 11.36, "广东"]},
                {"name": "江苏", "value": [12443.0, 8.92, "江苏"]},
                {"name": "山东", "value": [12078.0, 8.66, "山东"]},
                {"name": "浙江", "value": [9705.0, 6.96, "浙江"]},
                {"name": "河北", "value": [6921.0, 4.96, "河北"]},
                {"name": "河南", "value": [6868.0, 4.92, "河南"]},
                {"name": "上海", "value": [6694.0, 4.8, "上海"]},
                {"name": "辽宁", "value": [6003.0, 4.3, "辽宁"]},
                {"name": "四川", "value": [5333.0, 3.82, "四川"]},
                {"name": "北京", "value": [5007.0, 3.59, "北京"]},
                {"name": "福建", "value": [4984.0, 3.57, "福建"]},
                {"name": "湖北", "value": [4757.0, 3.41, "湖北"]},
                {"name": "湖南", "value": [4660.0, 3.34, "湖南"]},
                {"name": "黑龙江", "value": [4057.0, 2.91, "黑龙江"]},
                {"name": "安徽", "value": [3923.0, 2.81, "安徽"]},
                {"name": "山西", "value": [2855.0, 2.05, "山西"]},
                {"name": "广西", "value": [2821.0, 2.02, "广西"]},
                {"name": "江西", "value": [2807.0, 2.01, "江西"]},
                {"name": "吉林", "value": [2662.0, 1.91, "吉林"]},
                {"name": "陕西", "value": [2588.0, 1.85, "陕西"]},
                {"name": "天津", "value": [2578.0, 1.85, "天津"]},
                {"name": "云南", "value": [2556.0, 1.83, "云南"]},
                {"name": "重庆", "value": [2556.0, 1.83, "重庆"]},
                {"name": "内蒙古", "value": [2388.0, 1.71, "内蒙古"]},
                {"name": "新疆", "value": [1886.0, 1.35, "新疆"]},
                {"name": "贵州", "value": [1426.0, 1.02, "贵州"]},
                {"name": "甘肃", "value": [1400.0, 1.0, "甘肃"]},
                {"name": "海南", "value": [714.0, 0.51, "海南"]},
                {"name": "宁夏", "value": [445.0, 0.32, "宁夏"]},
                {"name": "青海", "value": [390.0, 0.28, "青海"]},
                {"name": "西藏", "value": [185.0, 0.13, "西藏"]},
            ],
        },
        {
            "time": "2004年",
            "data": [
                {"name": "广东", "value": [18865.0, 11.23, "广东"]},
                {"name": "山东", "value": [15022.0, 8.95, "山东"]},
                {"name": "江苏", "value": [15004.0, 8.93, "江苏"]},
                {"name": "浙江", "value": [11649.0, 6.94, "浙江"]},
                {"name": "河南", "value": [8554.0, 5.09, "河南"]},
                {"name": "河北", "value": [8478.0, 5.05, "河北"]},
                {"name": "上海", "value": [8073.0, 4.81, "上海"]},
                {"name": "辽宁", "value": [6672.0, 3.97, "辽宁"]},
                {"name": "四川", "value": [6380.0, 3.8, "四川"]},
                {"name": "北京", "value": [6033.0, 3.59, "北京"]},
                {"name": "福建", "value": [5763.0, 3.43, "福建"]},
                {"name": "湖南", "value": [5642.0, 3.36, "湖南"]},
                {"name": "湖北", "value": [5633.0, 3.35, "湖北"]},
                {"name": "安徽", "value": [4759.0, 2.83, "安徽"]},
                {"name": "黑龙江", "value": [4751.0, 2.83, "黑龙江"]},
                {"name": "山西", "value": [3571.0, 2.13, "山西"]},
                {"name": "江西", "value": [3457.0, 2.06, "江西"]},
                {"name": "广西", "value": [3434.0, 2.04, "广西"]},
                {"name": "陕西", "value": [3176.0, 1.89, "陕西"]},
                {"name": "吉林", "value": [3122.0, 1.86, "吉林"]},
                {"name": "天津", "value": [3111.0, 1.85, "天津"]},
                {"name": "云南", "value": [3082.0, 1.84, "云南"]},
                {"name": "内蒙古", "value": [3041.0, 1.81, "内蒙古"]},
                {"name": "重庆", "value": [3035.0, 1.81, "重庆"]},
                {"name": "新疆", "value": [2209.0, 1.32, "新疆"]},
                {"name": "甘肃", "value": [1688.0, 1.01, "甘肃"]},
                {"name": "贵州", "value": [1678.0, 1.0, "贵州"]},
                {"name": "海南", "value": [820.0, 0.49, "海南"]},
                {"name": "宁夏", "value": [537.0, 0.32, "宁夏"]},
                {"name": "青海", "value": [466.0, 0.28, "青海"]},
                {"name": "西藏", "value": [220.0, 0.13, "西藏"]},
            ],
        },
        {
            "time": "2005年",
            "data": [
                {"name": "广东", "value": [22557.0, 11.32, "广东"]},
                {"name": "江苏", "value": [18599.0, 9.34, "江苏"]},
                {"name": "山东", "value": [18367.0, 9.22, "山东"]},
                {"name": "浙江", "value": [13418.0, 6.73, "浙江"]},
                {"name": "河南", "value": [10587.0, 5.31, "河南"]},
                {"name": "河北", "value": [10012.0, 5.03, "河北"]},
                {"name": "上海", "value": [9248.0, 4.64, "上海"]},
                {"name": "辽宁", "value": [8047.0, 4.04, "辽宁"]},
                {"name": "四川", "value": [7385.0, 3.71, "四川"]},
                {"name": "北京", "value": [6970.0, 3.5, "北京"]},
                {"name": "湖南", "value": [6596.0, 3.31, "湖南"]},
                {"name": "湖北", "value": [6590.0, 3.31, "湖北"]},
                {"name": "福建", "value": [6555.0, 3.29, "福建"]},
                {"name": "黑龙江", "value": [5514.0, 2.77, "黑龙江"]},
                {"name": "安徽", "value": [5350.0, 2.69, "安徽"]},
                {"name": "山西", "value": [4231.0, 2.12, "山西"]},
                {"name": "江西", "value": [4057.0, 2.04, "江西"]},
                {"name": "广西", "value": [3984.0, 2.0, "广西"]},
                {"name": "陕西", "value": [3934.0, 1.97, "陕西"]},
                {"name": "天津", "value": [3906.0, 1.96, "天津"]},
                {"name": "内蒙古", "value": [3905.0, 1.96, "内蒙古"]},
                {"name": "吉林", "value": [3620.0, 1.82, "吉林"]},
                {"name": "重庆", "value": [3468.0, 1.74, "重庆"]},
                {"name": "云南", "value": [3463.0, 1.74, "云南"]},
                {"name": "新疆", "value": [2604.0, 1.31, "新疆"]},
                {"name": "贵州", "value": [2005.0, 1.01, "贵州"]},
                {"name": "甘肃", "value": [1934.0, 0.97, "甘肃"]},
                {"name": "海南", "value": [919.0, 0.46, "海南"]},
                {"name": "宁夏", "value": [613.0, 0.31, "宁夏"]},
                {"name": "青海", "value": [543.0, 0.27, "青海"]},
                {"name": "西藏", "value": [249.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2006年",
            "data": [
                {"name": "广东", "value": [26588.0, 11.42, "广东"]},
                {"name": "山东", "value": [21900.0, 9.41, "山东"]},
                {"name": "江苏", "value": [21742.0, 9.34, "江苏"]},
                {"name": "浙江", "value": [15718.0, 6.75, "浙江"]},
                {"name": "河南", "value": [12363.0, 5.31, "河南"]},
                {"name": "河北", "value": [11468.0, 4.93, "河北"]},
                {"name": "上海", "value": [10572.0, 4.54, "上海"]},
                {"name": "辽宁", "value": [9305.0, 4.0, "辽宁"]},
                {"name": "四川", "value": [8690.0, 3.73, "四川"]},
                {"name": "北京", "value": [8118.0, 3.49, "北京"]},
                {"name": "湖南", "value": [7689.0, 3.3, "湖南"]},
                {"name": "湖北", "value": [7617.0, 3.27, "湖北"]},
                {"name": "福建", "value": [7584.0, 3.26, "福建"]},
                {"name": "黑龙江", "value": [6212.0, 2.67, "黑龙江"]},
                {"name": "安徽", "value": [6113.0, 2.63, "安徽"]},
                {"name": "内蒙古", "value": [4944.0, 2.12, "内蒙古"]},
                {"name": "山西", "value": [4879.0, 2.1, "山西"]},
                {"name": "江西", "value": [4821.0, 2.07, "江西"]},
                {"name": "广西", "value": [4746.0, 2.04, "广西"]},
                {"name": "陕西", "value": [4744.0, 2.04, "陕西"]},
                {"name": "天津", "value": [4463.0, 1.92, "天津"]},
                {"name": "吉林", "value": [4275.0, 1.84, "吉林"]},
                {"name": "云南", "value": [3988.0, 1.71, "云南"]},
                {"name": "重庆", "value": [3907.0, 1.68, "重庆"]},
                {"name": "新疆", "value": [3045.0, 1.31, "新疆"]},
                {"name": "贵州", "value": [2339.0, 1.0, "贵州"]},
                {"name": "甘肃", "value": [2277.0, 0.98, "甘肃"]},
                {"name": "海南", "value": [1066.0, 0.46, "海南"]},
                {"name": "宁夏", "value": [726.0, 0.31, "宁夏"]},
                {"name": "青海", "value": [649.0, 0.28, "青海"]},
                {"name": "西藏", "value": [291.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2007年",
            "data": [
                {"name": "广东", "value": [31777.0, 11.36, "广东"]},
                {"name": "江苏", "value": [26018.0, 9.3, "江苏"]},
                {"name": "山东", "value": [25777.0, 9.21, "山东"]},
                {"name": "浙江", "value": [18754.0, 6.7, "浙江"]},
                {"name": "河南", "value": [15012.0, 5.37, "河南"]},
                {"name": "河北", "value": [13607.0, 4.86, "河北"]},
                {"name": "上海", "value": [12494.0, 4.47, "上海"]},
                {"name": "辽宁", "value": [11164.0, 3.99, "辽宁"]},
                {"name": "四川", "value": [10562.0, 3.78, "四川"]},
                {"name": "北京", "value": [9847.0, 3.52, "北京"]},
                {"name": "湖南", "value": [9440.0, 3.37, "湖南"]},
                {"name": "湖北", "value": [9333.0, 3.34, "湖北"]},
                {"name": "福建", "value": [9249.0, 3.31, "福建"]},
                {"name": "安徽", "value": [7361.0, 2.63, "安徽"]},
                {"name": "黑龙江", "value": [7104.0, 2.54, "黑龙江"]},
                {"name": "内蒙古", "value": [6423.0, 2.3, "内蒙古"]},
                {"name": "山西", "value": [6024.0, 2.15, "山西"]},
                {"name": "广西", "value": [5823.0, 2.08, "广西"]},
                {"name": "江西", "value": [5800.0, 2.07, "江西"]},
                {"name": "陕西", "value": [5757.0, 2.06, "陕西"]},
                {"name": "吉林", "value": [5285.0, 1.89, "吉林"]},
                {"name": "天津", "value": [5253.0, 1.88, "天津"]},
                {"name": "云南", "value": [4773.0, 1.71, "云南"]},
                {"name": "重庆", "value": [4676.0, 1.67, "重庆"]},
                {"name": "新疆", "value": [3523.0, 1.26, "新疆"]},
                {"name": "贵州", "value": [2884.0, 1.03, "贵州"]},
                {"name": "甘肃", "value": [2704.0, 0.97, "甘肃"]},
                {"name": "海南", "value": [1254.0, 0.45, "海南"]},
                {"name": "宁夏", "value": [919.0, 0.33, "宁夏"]},
                {"name": "青海", "value": [797.0, 0.28, "青海"]},
                {"name": "西藏", "value": [341.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2008年",
            "data": [
                {"name": "广东", "value": [36797.0, 11.04, "广东"]},
                {"name": "江苏", "value": [30982.0, 9.3, "江苏"]},
                {"name": "山东", "value": [30933.0, 9.28, "山东"]},
                {"name": "浙江", "value": [21463.0, 6.44, "浙江"]},
                {"name": "河南", "value": [18019.0, 5.41, "河南"]},
                {"name": "河北", "value": [16012.0, 4.8, "河北"]},
                {"name": "上海", "value": [14070.0, 4.22, "上海"]},
                {"name": "辽宁", "value": [13669.0, 4.1, "辽宁"]},
                {"name": "四川", "value": [12601.0, 3.78, "四川"]},
                {"name": "湖南", "value": [11555.0, 3.47, "湖南"]},
                {"name": "湖北", "value": [11329.0, 3.4, "湖北"]},
                {"name": "北京", "value": [11115.0, 3.33, "北京"]},
                {"name": "福建", "value": [10823.0, 3.25, "福建"]},
                {"name": "安徽", "value": [8852.0, 2.66, "安徽"]},
                {"name": "内蒙古", "value": [8496.0, 2.55, "内蒙古"]},
                {"name": "黑龙江", "value": [8314.0, 2.49, "黑龙江"]},
                {"name": "山西", "value": [7315.0, 2.19, "山西"]},
                {"name": "陕西", "value": [7315.0, 2.19, "陕西"]},
                {"name": "广西", "value": [7021.0, 2.11, "广西"]},
                {"name": "江西", "value": [6971.0, 2.09, "江西"]},
                {"name": "天津", "value": [6719.0, 2.02, "天津"]},
                {"name": "吉林", "value": [6426.0, 1.93, "吉林"]},
                {"name": "重庆", "value": [5794.0, 1.74, "重庆"]},
                {"name": "云南", "value": [5692.0, 1.71, "云南"]},
                {"name": "新疆", "value": [4183.0, 1.25, "新疆"]},
                {"name": "贵州", "value": [3562.0, 1.07, "贵州"]},
                {"name": "甘肃", "value": [3167.0, 0.95, "甘肃"]},
                {"name": "海南", "value": [1503.0, 0.45, "海南"]},
                {"name": "宁夏", "value": [1204.0, 0.36, "宁夏"]},
                {"name": "青海", "value": [1019.0, 0.31, "青海"]},
                {"name": "西藏", "value": [395.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2009年",
            "data": [
                {"name": "广东", "value": [39483.0, 10.81, "广东"]},
                {"name": "江苏", "value": [34457.0, 9.43, "江苏"]},
                {"name": "山东", "value": [33897.0, 9.28, "山东"]},
                {"name": "浙江", "value": [22990.0, 6.29, "浙江"]},
                {"name": "河南", "value": [19480.0, 5.33, "河南"]},
                {"name": "河北", "value": [17235.0, 4.72, "河北"]},
                {"name": "辽宁", "value": [15212.0, 4.16, "辽宁"]},
                {"name": "上海", "value": [15046.0, 4.12, "上海"]},
                {"name": "四川", "value": [14151.0, 3.87, "四川"]},
                {"name": "湖南", "value": [13060.0, 3.58, "湖南"]},
                {"name": "湖北", "value": [12961.0, 3.55, "湖北"]},
                {"name": "福建", "value": [12237.0, 3.35, "福建"]},
                {"name": "北京", "value": [12153.0, 3.33, "北京"]},
                {"name": "安徽", "value": [10063.0, 2.75, "安徽"]},
                {"name": "内蒙古", "value": [9740.0, 2.67, "内蒙古"]},
                {"name": "黑龙江", "value": [8587.0, 2.35, "黑龙江"]},
                {"name": "陕西", "value": [8170.0, 2.24, "陕西"]},
                {"name": "广西", "value": [7759.0, 2.12, "广西"]},
                {"name": "江西", "value": [7655.0, 2.1, "江西"]},
                {"name": "天津", "value": [7522.0, 2.06, "天津"]},
                {"name": "山西", "value": [7358.0, 2.01, "山西"]},
                {"name": "吉林", "value": [7279.0, 1.99, "吉林"]},
                {"name": "重庆", "value": [6530.0, 1.79, "重庆"]},
                {"name": "云南", "value": [6170.0, 1.69, "云南"]},
                {"name": "新疆", "value": [4277.0, 1.17, "新疆"]},
                {"name": "贵州", "value": [3913.0, 1.07, "贵州"]},
                {"name": "甘肃", "value": [3388.0, 0.93, "甘肃"]},
                {"name": "海南", "value": [1654.0, 0.45, "海南"]},
                {"name": "宁夏", "value": [1353.0, 0.37, "宁夏"]},
                {"name": "青海", "value": [1081.0, 0.3, "青海"]},
                {"name": "西藏", "value": [441.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2010年",
            "data": [
                {"name": "广东", "value": [46013.0, 10.53, "广东"]},
                {"name": "江苏", "value": [41425.0, 9.48, "江苏"]},
                {"name": "山东", "value": [39170.0, 8.96, "山东"]},
                {"name": "浙江", "value": [27722.0, 6.34, "浙江"]},
                {"name": "河南", "value": [23092.0, 5.28, "河南"]},
                {"name": "河北", "value": [20394.0, 4.67, "河北"]},
                {"name": "辽宁", "value": [18457.0, 4.22, "辽宁"]},
                {"name": "四川", "value": [17185.0, 3.93, "四川"]},
                {"name": "上海", "value": [17166.0, 3.93, "上海"]},
                {"name": "湖南", "value": [16038.0, 3.67, "湖南"]},
                {"name": "湖北", "value": [15968.0, 3.65, "湖北"]},
                {"name": "福建", "value": [14737.0, 3.37, "福建"]},
                {"name": "北京", "value": [14114.0, 3.23, "北京"]},
                {"name": "安徽", "value": [12359.0, 2.83, "安徽"]},
                {"name": "内蒙古", "value": [11672.0, 2.67, "内蒙古"]},
                {"name": "黑龙江", "value": [10369.0, 2.37, "黑龙江"]},
                {"name": "陕西", "value": [10123.0, 2.32, "陕西"]},
                {"name": "广西", "value": [9570.0, 2.19, "广西"]},
                {"name": "江西", "value": [9451.0, 2.16, "江西"]},
                {"name": "天津", "value": [9224.0, 2.11, "天津"]},
                {"name": "山西", "value": [9201.0, 2.11, "山西"]},
                {"name": "吉林", "value": [8668.0, 1.98, "吉林"]},
                {"name": "重庆", "value": [7926.0, 1.81, "重庆"]},
                {"name": "云南", "value": [7224.0, 1.65, "云南"]},
                {"name": "新疆", "value": [5437.0, 1.24, "新疆"]},
                {"name": "贵州", "value": [4602.0, 1.05, "贵州"]},
                {"name": "甘肃", "value": [4121.0, 0.94, "甘肃"]},
                {"name": "海南", "value": [2065.0, 0.47, "海南"]},
                {"name": "宁夏", "value": [1690.0, 0.39, "宁夏"]},
                {"name": "青海", "value": [1350.0, 0.31, "青海"]},
                {"name": "西藏", "value": [507.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2011年",
            "data": [
                {"name": "广东", "value": [53210.0, 10.2, "广东"]},
                {"name": "江苏", "value": [49110.0, 9.42, "江苏"]},
                {"name": "山东", "value": [45362.0, 8.7, "山东"]},
                {"name": "浙江", "value": [32319.0, 6.2, "浙江"]},
                {"name": "河南", "value": [26931.0, 5.16, "河南"]},
                {"name": "河北", "value": [24516.0, 4.7, "河北"]},
                {"name": "辽宁", "value": [22227.0, 4.26, "辽宁"]},
                {"name": "四川", "value": [21027.0, 4.03, "四川"]},
                {"name": "湖南", "value": [19670.0, 3.77, "湖南"]},
                {"name": "湖北", "value": [19632.0, 3.76, "湖北"]},
                {"name": "上海", "value": [19196.0, 3.68, "上海"]},
                {"name": "福建", "value": [17560.0, 3.37, "福建"]},
                {"name": "北京", "value": [16252.0, 3.12, "北京"]},
                {"name": "安徽", "value": [15301.0, 2.93, "安徽"]},
                {"name": "内蒙古", "value": [14360.0, 2.75, "内蒙古"]},
                {"name": "黑龙江", "value": [12582.0, 2.41, "黑龙江"]},
                {"name": "陕西", "value": [12512.0, 2.4, "陕西"]},
                {"name": "广西", "value": [11721.0, 2.25, "广西"]},
                {"name": "江西", "value": [11703.0, 2.24, "江西"]},
                {"name": "天津", "value": [11307.0, 2.17, "天津"]},
                {"name": "山西", "value": [11238.0, 2.16, "山西"]},
                {"name": "吉林", "value": [10569.0, 2.03, "吉林"]},
                {"name": "重庆", "value": [10011.0, 1.92, "重庆"]},
                {"name": "云南", "value": [8893.0, 1.71, "云南"]},
                {"name": "新疆", "value": [6610.0, 1.27, "新疆"]},
                {"name": "贵州", "value": [5702.0, 1.09, "贵州"]},
                {"name": "甘肃", "value": [5020.0, 0.96, "甘肃"]},
                {"name": "海南", "value": [2523.0, 0.48, "海南"]},
                {"name": "宁夏", "value": [2102.0, 0.4, "宁夏"]},
                {"name": "青海", "value": [1670.0, 0.32, "青海"]},
                {"name": "西藏", "value": [606.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2012年",
            "data": [
                {"name": "广东", "value": [57068.0, 9.9, "广东"]},
                {"name": "江苏", "value": [54058.0, 9.38, "江苏"]},
                {"name": "山东", "value": [50013.0, 8.67, "山东"]},
                {"name": "浙江", "value": [34665.0, 6.01, "浙江"]},
                {"name": "河南", "value": [29599.0, 5.13, "河南"]},
                {"name": "河北", "value": [26575.0, 4.61, "河北"]},
                {"name": "辽宁", "value": [24846.0, 4.31, "辽宁"]},
                {"name": "四川", "value": [23873.0, 4.14, "四川"]},
                {"name": "湖北", "value": [22250.0, 3.86, "湖北"]},
                {"name": "湖南", "value": [22154.0, 3.84, "湖南"]},
                {"name": "上海", "value": [20182.0, 3.5, "上海"]},
                {"name": "福建", "value": [19702.0, 3.42, "福建"]},
                {"name": "北京", "value": [17879.0, 3.1, "北京"]},
                {"name": "安徽", "value": [17212.0, 2.99, "安徽"]},
                {"name": "内蒙古", "value": [15881.0, 2.75, "内蒙古"]},
                {"name": "陕西", "value": [14454.0, 2.51, "陕西"]},
                {"name": "黑龙江", "value": [13692.0, 2.37, "黑龙江"]},
                {"name": "广西", "value": [13035.0, 2.26, "广西"]},
                {"name": "江西", "value": [12949.0, 2.25, "江西"]},
                {"name": "天津", "value": [12894.0, 2.24, "天津"]},
                {"name": "山西", "value": [12113.0, 2.1, "山西"]},
                {"name": "吉林", "value": [11939.0, 2.07, "吉林"]},
                {"name": "重庆", "value": [11410.0, 1.98, "重庆"]},
                {"name": "云南", "value": [10309.0, 1.79, "云南"]},
                {"name": "新疆", "value": [7505.0, 1.3, "新疆"]},
                {"name": "贵州", "value": [6852.0, 1.19, "贵州"]},
                {"name": "甘肃", "value": [5650.0, 0.98, "甘肃"]},
                {"name": "海南", "value": [2856.0, 0.5, "海南"]},
                {"name": "宁夏", "value": [2341.0, 0.41, "宁夏"]},
                {"name": "青海", "value": [1894.0, 0.33, "青海"]},
                {"name": "西藏", "value": [701.0, 0.12, "西藏"]},
            ],
        },
        {
            "time": "2013年",
            "data": [
                {"name": "广东", "value": [62475.0, 9.85, "广东"]},
                {"name": "江苏", "value": [59753.0, 9.42, "江苏"]},
                {"name": "山东", "value": [55230.0, 8.71, "山东"]},
                {"name": "浙江", "value": [37757.0, 5.95, "浙江"]},
                {"name": "河南", "value": [32191.0, 5.07, "河南"]},
                {"name": "河北", "value": [28443.0, 4.48, "河北"]},
                {"name": "辽宁", "value": [27213.0, 4.29, "辽宁"]},
                {"name": "四川", "value": [26392.0, 4.16, "四川"]},
                {"name": "湖北", "value": [24792.0, 3.91, "湖北"]},
                {"name": "湖南", "value": [24622.0, 3.88, "湖南"]},
                {"name": "福建", "value": [21868.0, 3.45, "福建"]},
                {"name": "上海", "value": [21818.0, 3.44, "上海"]},
                {"name": "北京", "value": [19801.0, 3.12, "北京"]},
                {"name": "安徽", "value": [19229.0, 3.03, "安徽"]},
                {"name": "内蒙古", "value": [16917.0, 2.67, "内蒙古"]},
                {"name": "陕西", "value": [16205.0, 2.55, "陕西"]},
                {"name": "黑龙江", "value": [14455.0, 2.28, "黑龙江"]},
                {"name": "广西", "value": [14450.0, 2.28, "广西"]},
                {"name": "天津", "value": [14442.0, 2.28, "天津"]},
                {"name": "江西", "value": [14410.0, 2.27, "江西"]},
                {"name": "吉林", "value": [13046.0, 2.06, "吉林"]},
                {"name": "重庆", "value": [12783.0, 2.02, "重庆"]},
                {"name": "山西", "value": [12665.0, 2.0, "山西"]},
                {"name": "云南", "value": [11832.0, 1.87, "云南"]},
                {"name": "新疆", "value": [8444.0, 1.33, "新疆"]},
                {"name": "贵州", "value": [8087.0, 1.27, "贵州"]},
                {"name": "甘肃", "value": [6331.0, 1.0, "甘肃"]},
                {"name": "海南", "value": [3178.0, 0.5, "海南"]},
                {"name": "宁夏", "value": [2578.0, 0.41, "宁夏"]},
                {"name": "青海", "value": [2122.0, 0.33, "青海"]},
                {"name": "西藏", "value": [816.0, 0.13, "西藏"]},
            ],
        },
        {
            "time": "2014年",
            "data": [
                {"name": "广东", "value": [67810.0, 9.91, "广东"]},
                {"name": "江苏", "value": [65088.0, 9.51, "江苏"]},
                {"name": "山东", "value": [59427.0, 8.68, "山东"]},
                {"name": "浙江", "value": [40173.0, 5.87, "浙江"]},
                {"name": "河南", "value": [34938.0, 5.11, "河南"]},
                {"name": "河北", "value": [29421.0, 4.3, "河北"]},
                {"name": "辽宁", "value": [28627.0, 4.18, "辽宁"]},
                {"name": "四川", "value": [28537.0, 4.17, "四川"]},
                {"name": "湖北", "value": [27379.0, 4.0, "湖北"]},
                {"name": "湖南", "value": [27037.0, 3.95, "湖南"]},
                {"name": "福建", "value": [24056.0, 3.52, "福建"]},
                {"name": "上海", "value": [23568.0, 3.44, "上海"]},
                {"name": "北京", "value": [21331.0, 3.12, "北京"]},
                {"name": "安徽", "value": [20849.0, 3.05, "安徽"]},
                {"name": "内蒙古", "value": [17770.0, 2.6, "内蒙古"]},
                {"name": "陕西", "value": [17690.0, 2.58, "陕西"]},
                {"name": "天津", "value": [15727.0, 2.3, "天津"]},
                {"name": "江西", "value": [15715.0, 2.3, "江西"]},
                {"name": "广西", "value": [15673.0, 2.29, "广西"]},
                {"name": "黑龙江", "value": [15039.0, 2.2, "黑龙江"]},
                {"name": "重庆", "value": [14263.0, 2.08, "重庆"]},
                {"name": "吉林", "value": [13803.0, 2.02, "吉林"]},
                {"name": "云南", "value": [12815.0, 1.87, "云南"]},
                {"name": "山西", "value": [12761.0, 1.86, "山西"]},
                {"name": "新疆", "value": [9273.0, 1.36, "新疆"]},
                {"name": "贵州", "value": [9266.0, 1.35, "贵州"]},
                {"name": "甘肃", "value": [6837.0, 1.0, "甘肃"]},
                {"name": "海南", "value": [3501.0, 0.51, "海南"]},
                {"name": "宁夏", "value": [2752.0, 0.4, "宁夏"]},
                {"name": "青海", "value": [2303.0, 0.34, "青海"]},
                {"name": "西藏", "value": [921.0, 0.13, "西藏"]},
            ],
        },
        {
            "time": "2015年",
            "data": [
                {"name": "广东", "value": [72813.0, 10.07, "广东"]},
                {"name": "江苏", "value": [70116.0, 9.7, "江苏"]},
                {"name": "山东", "value": [63002.0, 8.72, "山东"]},
                {"name": "浙江", "value": [42886.0, 5.93, "浙江"]},
                {"name": "河南", "value": [37002.0, 5.12, "河南"]},
                {"name": "四川", "value": [30053.0, 4.16, "四川"]},
                {"name": "河北", "value": [29806.0, 4.12, "河北"]},
                {"name": "湖北", "value": [29550.0, 4.09, "湖北"]},
                {"name": "湖南", "value": [28902.0, 4.0, "湖南"]},
                {"name": "辽宁", "value": [28669.0, 3.97, "辽宁"]},
                {"name": "福建", "value": [25980.0, 3.59, "福建"]},
                {"name": "上海", "value": [25123.0, 3.48, "上海"]},
                {"name": "北京", "value": [23015.0, 3.18, "北京"]},
                {"name": "安徽", "value": [22006.0, 3.04, "安徽"]},
                {"name": "陕西", "value": [18022.0, 2.49, "陕西"]},
                {"name": "内蒙古", "value": [17832.0, 2.47, "内蒙古"]},
                {"name": "广西", "value": [16803.0, 2.32, "广西"]},
                {"name": "江西", "value": [16724.0, 2.31, "江西"]},
                {"name": "天津", "value": [16538.0, 2.29, "天津"]},
                {"name": "重庆", "value": [15717.0, 2.17, "重庆"]},
                {"name": "黑龙江", "value": [15084.0, 2.09, "黑龙江"]},
                {"name": "吉林", "value": [14063.0, 1.95, "吉林"]},
                {"name": "云南", "value": [13619.0, 1.88, "云南"]},
                {"name": "山西", "value": [12766.0, 1.77, "山西"]},
                {"name": "贵州", "value": [10503.0, 1.45, "贵州"]},
                {"name": "新疆", "value": [9325.0, 1.29, "新疆"]},
                {"name": "甘肃", "value": [6790.0, 0.94, "甘肃"]},
                {"name": "海南", "value": [3703.0, 0.51, "海南"]},
                {"name": "宁夏", "value": [2912.0, 0.4, "宁夏"]},
                {"name": "青海", "value": [2417.0, 0.33, "青海"]},
                {"name": "西藏", "value": [1026.0, 0.14, "西藏"]},
            ],
        },
        {
            "time": "2016年",
            "data": [
                {"name": "广东", "value": [80855.0, 10.37, "广东"]},
                {"name": "江苏", "value": [77388.0, 9.92, "江苏"]},
                {"name": "山东", "value": [68024.0, 8.72, "山东"]},
                {"name": "浙江", "value": [47251.0, 6.06, "浙江"]},
                {"name": "河南", "value": [40472.0, 5.19, "河南"]},
                {"name": "四川", "value": [32935.0, 4.22, "四川"]},
                {"name": "湖北", "value": [32665.0, 4.19, "湖北"]},
                {"name": "河北", "value": [32070.0, 4.11, "河北"]},
                {"name": "湖南", "value": [31551.0, 4.04, "湖南"]},
                {"name": "福建", "value": [28811.0, 3.69, "福建"]},
                {"name": "上海", "value": [28179.0, 3.61, "上海"]},
                {"name": "北京", "value": [25669.0, 3.29, "北京"]},
                {"name": "安徽", "value": [24408.0, 3.13, "安徽"]},
                {"name": "辽宁", "value": [22247.0, 2.85, "辽宁"]},
                {"name": "陕西", "value": [19400.0, 2.49, "陕西"]},
                {"name": "江西", "value": [18499.0, 2.37, "江西"]},
                {"name": "广西", "value": [18318.0, 2.35, "广西"]},
                {"name": "内蒙古", "value": [18128.0, 2.32, "内蒙古"]},
                {"name": "天津", "value": [17885.0, 2.29, "天津"]},
                {"name": "重庆", "value": [17741.0, 2.27, "重庆"]},
                {"name": "黑龙江", "value": [15386.0, 1.97, "黑龙江"]},
                {"name": "云南", "value": [14788.0, 1.9, "云南"]},
                {"name": "吉林", "value": [14777.0, 1.89, "吉林"]},
                {"name": "山西", "value": [13050.0, 1.67, "山西"]},
                {"name": "贵州", "value": [11777.0, 1.51, "贵州"]},
                {"name": "新疆", "value": [9650.0, 1.24, "新疆"]},
                {"name": "甘肃", "value": [7200.0, 0.92, "甘肃"]},
                {"name": "海南", "value": [4053.0, 0.52, "海南"]},
                {"name": "宁夏", "value": [3169.0, 0.41, "宁夏"]},
                {"name": "青海", "value": [2572.0, 0.33, "青海"]},
                {"name": "西藏", "value": [1151.0, 0.15, "西藏"]},
            ],
        },
        {
            "time": "2017年",
            "data": [
                {"name": "广东", "value": [89705.0, 10.59, "广东"]},
                {"name": "江苏", "value": [85870.0, 10.14, "江苏"]},
                {"name": "山东", "value": [72634.0, 8.57, "山东"]},
                {"name": "浙江", "value": [51768.0, 6.11, "浙江"]},
                {"name": "河南", "value": [44553.0, 5.26, "河南"]},
                {"name": "四川", "value": [36980.0, 4.37, "四川"]},
                {"name": "湖北", "value": [35478.0, 4.19, "湖北"]},
                {"name": "河北", "value": [34016.0, 4.02, "河北"]},
                {"name": "湖南", "value": [33903.0, 4.0, "湖南"]},
                {"name": "福建", "value": [32182.0, 3.8, "福建"]},
                {"name": "上海", "value": [30633.0, 3.62, "上海"]},
                {"name": "北京", "value": [28015.0, 3.31, "北京"]},
                {"name": "安徽", "value": [27018.0, 3.19, "安徽"]},
                {"name": "辽宁", "value": [23409.0, 2.76, "辽宁"]},
                {"name": "陕西", "value": [21899.0, 2.59, "陕西"]},
                {"name": "江西", "value": [20006.0, 2.36, "江西"]},
                {"name": "重庆", "value": [19425.0, 2.29, "重庆"]},
                {"name": "天津", "value": [18549.0, 2.19, "天津"]},
                {"name": "广西", "value": [18523.0, 2.19, "广西"]},
                {"name": "云南", "value": [16376.0, 1.93, "云南"]},
                {"name": "内蒙古", "value": [16096.0, 1.9, "内蒙古"]},
                {"name": "黑龙江", "value": [15903.0, 1.88, "黑龙江"]},
                {"name": "山西", "value": [15528.0, 1.83, "山西"]},
                {"name": "吉林", "value": [14945.0, 1.76, "吉林"]},
                {"name": "贵州", "value": [13541.0, 1.6, "贵州"]},
                {"name": "新疆", "value": [10882.0, 1.28, "新疆"]},
                {"name": "甘肃", "value": [7460.0, 0.88, "甘肃"]},
                {"name": "海南", "value": [4463.0, 0.53, "海南"]},
                {"name": "宁夏", "value": [3444.0, 0.41, "宁夏"]},
                {"name": "青海", "value": [2625.0, 0.31, "青海"]},
                {"name": "西藏", "value": [1311.0, 0.15, "西藏"]},
            ],
        },
        {
            "time": "2018年",
            "data": [
                {"name": "广东", "value": [97278.0, 10.63, "广东"]},
                {"name": "江苏", "value": [92595.0, 10.12, "江苏"]},
                {"name": "山东", "value": [76470.0, 8.36, "山东"]},
                {"name": "浙江", "value": [56197.0, 6.14, "浙江"]},
                {"name": "河南", "value": [48056.0, 5.25, "河南"]},
                {"name": "四川", "value": [40678.0, 4.45, "四川"]},
                {"name": "湖北", "value": [39367.0, 4.3, "湖北"]},
                {"name": "湖南", "value": [36426.0, 3.98, "湖南"]},
                {"name": "河北", "value": [36010.0, 3.94, "河北"]},
                {"name": "福建", "value": [35804.0, 3.91, "福建"]},
                {"name": "上海", "value": [32680.0, 3.57, "上海"]},
                {"name": "北京", "value": [30320.0, 3.31, "北京"]},
                {"name": "安徽", "value": [30007.0, 3.28, "安徽"]},
                {"name": "辽宁", "value": [25315.0, 2.77, "辽宁"]},
                {"name": "陕西", "value": [24438.0, 2.67, "陕西"]},
                {"name": "江西", "value": [21985.0, 2.4, "江西"]},
                {"name": "重庆", "value": [20363.0, 2.23, "重庆"]},
                {"name": "广西", "value": [20353.0, 2.23, "广西"]},
                {"name": "天津", "value": [18810.0, 2.06, "天津"]},
                {"name": "云南", "value": [17881.0, 1.95, "云南"]},
                {"name": "内蒙古", "value": [17289.0, 1.89, "内蒙古"]},
                {"name": "山西", "value": [16818.0, 1.84, "山西"]},
                {"name": "黑龙江", "value": [16362.0, 1.79, "黑龙江"]},
                {"name": "吉林", "value": [15075.0, 1.65, "吉林"]},
                {"name": "贵州", "value": [14806.0, 1.62, "贵州"]},
                {"name": "新疆", "value": [12199.0, 1.33, "新疆"]},
                {"name": "甘肃", "value": [8246.0, 0.9, "甘肃"]},
                {"name": "海南", "value": [4832.0, 0.53, "海南"]},
                {"name": "宁夏", "value": [3705.0, 0.41, "宁夏"]},
                {"name": "青海", "value": [2865.0, 0.31, "青海"]},
                {"name": "西藏", "value": [1478.0, 0.16, "西藏"]},
            ],
        },
    ]
    
    time_list = [str(d) + "年" for d in range(2000, 2019)]
    
    total_num = [
        9.9,
        10.9,
        12.1,
        14,
        16.8,
        19.9,
        23.3,
        28,
        33.3,
        36.5,
        43.7,
        52.1,
        57.7,
        63.4,
        68.4,
        72.3,
        78,
        84.7,
        91.5,
    ]
    maxNum = 97300
    minNum = 30
    
    def get_year_chart(year: str):
        map_data = [
            [[x["name"], x["value"]] for x in d["data"]] for d in data if d["time"] == year
        ][0]
        min_data, max_data = (minNum, maxNum)
        data_mark: List = []
        i = 0
        for x in time_list:
            if x == year:
                data_mark.append(total_num[i])
            else:
                data_mark.append("")
            i = i + 1
    
        map_chart = (
            Map()
            .add(
                series_name="",
                data_pair=map_data,
                zoom=1,
                center=[119.5, 34.5],
                is_map_symbol_show=False,
                itemstyle_opts={
                    "normal": {"areaColor": "#323c48", "borderColor": "#404a59"},
                    "emphasis": {
                        "label": {"show": Timeline},
                        "areaColor": "rgba(255,255,255, 0.5)",
                    },
                },
            )
            .set_global_opts(
                title_opts=opts.TitleOpts(
                    title="" + str(year) + "China gdp from 2000 to 2018",
                    subtitle="",
                    pos_left="center",
                    pos_top="top",
                    title_textstyle_opts=opts.TextStyleOpts(
                        font_size=25, color="rgba(255,255,255, 0.9)"
                    ),
                ),
                tooltip_opts=opts.TooltipOpts(
                    is_show=True,
                    formatter=JsCode(
                        """function(params) {
                        if ('value' in params.data) {
                            return params.data.value[2] + ': ' + params.data.value[0];
                        }
                    }"""
                    ),
                ),
                visualmap_opts=opts.VisualMapOpts(
                    is_calculable=True,
                    dimension=0,
                    pos_left="30",
                    pos_top="center",
                    range_text=["High", "Low"],
                    range_color=["lightskyblue", "yellow", "orangered"],
                    textstyle_opts=opts.TextStyleOpts(color="#ddd"),
                    min_=min_data,
                    max_=max_data,
                ),
            )
        )
    
        line_chart = (
            Line()
            .add_xaxis(time_list)
            .add_yaxis("", total_num)
            .add_yaxis(
                "",
                data_mark,
                markpoint_opts=opts.MarkPointOpts(data=[opts.MarkPointItem(type_="max")]),
            )
            .set_series_opts(label_opts=opts.LabelOpts(is_show=False))
            .set_global_opts(
                title_opts=opts.TitleOpts(
                    title="China GDP totle 2000-2018(Unit: trillion)", pos_left="72%", pos_top="5%"
                )
            )
        )
        bar_x_data = [x[0] for x in map_data]
        bar_y_data = [{"name": x[0], "value": x[1][0]} for x in map_data]
        bar = (
            Bar()
            .add_xaxis(xaxis_data=bar_x_data)
            .add_yaxis(
                series_name="",
                yaxis_data=bar_y_data,
                label_opts=opts.LabelOpts(
                    is_show=True, position="right", formatter="{b} : {c}"
                ),
            )
            .reversal_axis()
            .set_global_opts(
                xaxis_opts=opts.AxisOpts(
                    max_=maxNum, axislabel_opts=opts.LabelOpts(is_show=False)
                ),
                yaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(is_show=False)),
                tooltip_opts=opts.TooltipOpts(is_show=False),
                visualmap_opts=opts.VisualMapOpts(
                    is_calculable=True,
                    dimension=0,
                    pos_left="10",
                    pos_top="top",
                    range_text=["High", "Low"],
                    range_color=["lightskyblue", "yellow", "orangered"],
                    textstyle_opts=opts.TextStyleOpts(color="#ddd"),
                    min_=min_data,
                    max_=max_data,
                ),
            )
        )
    
        pie_data = [[x[0], x[1][0]] for x in map_data]
        pie = (
            Pie()
            .add(
                series_name="",
                data_pair=pie_data,
                radius=["15%", "35%"],
                center=["80%", "82%"],
                itemstyle_opts=opts.ItemStyleOpts(
                    border_width=1, border_color="rgba(0,0,0,0.3)"
                ),
            )
            .set_global_opts(
                tooltip_opts=opts.TooltipOpts(is_show=True, formatter="{b} {d}%"),
                legend_opts=opts.LegendOpts(is_show=False),
            )
        )
    
        grid_chart = (
            Grid()
            .add(
                bar,
                grid_opts=opts.GridOpts(
                    pos_left="10", pos_right="45%", pos_top="50%", pos_bottom="5"
                ),
            )
            .add(
                line_chart,
                grid_opts=opts.GridOpts(
                    pos_left="65%", pos_right="80", pos_top="10%", pos_bottom="50%"
                ),
            )
            .add(pie, grid_opts=opts.GridOpts(pos_left="45%", pos_top="60%"))
            .add(map_chart, grid_opts=opts.GridOpts())
        )
    
        return grid_chart
    
    
    
    
    from typing import List
    import pyecharts.options as opts
    from pyecharts.globals import ThemeType
    from pyecharts.commons.utils import JsCode
    from pyecharts.charts import Timeline, Grid, Bar, Map, Pie, Line
    
    
    
    
    
    
    timeline = Timeline(
        init_opts=opts.InitOpts(width="1080px", height="720px", theme=ThemeType.DARK)
    )
    for y in time_list:
        g = get_year_chart(year=y)
        timeline.add(g, time_point=str(y))
    
    timeline.add_schema(
        orient="vertical",
        is_auto_play=True,
        is_inverse=True,
        play_interval=5000,
        pos_left="null",
        pos_right="5",
        pos_top="20",
        pos_bottom="20",
        width="60",
        label_opts=opts.LabelOpts(is_show=True, color="#fff"),
    )
    
    #     timeline.render("china_gdp_from_2000_to_2018.html")
    timeline.render_notebook()
    

    在这里插入图片描述

    中国自上世纪80年代全国各省市GDP排名

    data = [
        {
            "time": 1980,
            "data": [
                {"name": "台湾", "value": [633.76, 12.28, "台湾"]},
                {"name": "香港", "value": [432.47, 8.38, "香港"]},
                {"name": "江苏", "value": [319.8, 6.2, "江苏"]},
                {"name": "上海", "value": [311.89, 6.05, "上海"]},
                {"name": "山东", "value": [292.13, 5.66, "山东"]},
                {"name": "辽宁", "value": [281, 5.45, "辽宁"]},
                {"name": "广东", "value": [249.65, 4.84, "广东"]},
                {"name": "四川", "value": [229.31, 4.44, "四川"]},
                {"name": "河南", "value": [229.16, 4.44, "河南"]},
                {"name": "黑龙江", "value": [221, 4.28, "黑龙江"]},
            ],
        },
        {
            "time": 2000,
            "data": [
                {"name": "台湾", "value": [27435.15, 19.47, "台湾"]},
                {"name": "香港", "value": [14201.59, 10.08, "香港"]},
                {"name": "广东", "value": [10741.25, 7.62, "广东"]},
                {"name": "江苏", "value": [8553.69, 6.07, "江苏"]},
                {"name": "山东", "value": [8337.47, 5.92, "山东"]},
                {"name": "浙江", "value": [6141.03, 4.36, "浙江"]},
                {"name": "河南", "value": [5052.99, 3.59, "河南"]},
                {"name": "河北", "value": [5043.96, 3.58, "河北"]},
                {"name": "上海", "value": [4771.17, 3.39, "上海"]},
                {"name": "辽宁", "value": [4669.1, 3.31, "辽宁"]},
            ],
        },
        {
            "time": 2005,
            "data": [
                {"name": "台湾", "value": [30792.89, 12.52, "台湾"]},
                {"name": "广东", "value": [22527.37, 9.16, "广东"]},
                {"name": "江苏", "value": [18598.69, 7.56, "江苏"]},
                {"name": "山东", "value": [18366.87, 7.47, "山东"]},
                {"name": "香港", "value": [14869.68, 6.05, "香港"]},
                {"name": "浙江", "value": [13417.68, 5.46, "浙江"]},
                {"name": "河南", "value": [10587.42, 4.3, "河南"]},
                {"name": "河北", "value": [10043.42, 4.08, "河北"]},
                {"name": "上海", "value": [9247.66, 3.76, "上海"]},
                {"name": "辽宁", "value": [8047.3, 3.27, "辽宁"]},
            ],
        },
        {
            "time": 2010,
            "data": [
                {"name": "广东", "value": [46036.25, 9.49, "广东"]},
                {"name": "江苏", "value": [41425.48, 8.54, "江苏"]},
                {"name": "山东", "value": [39169.92, 8.08, "山东"]},
                {"name": "台湾", "value": [30205.64, 6.23, "台湾"]},
                {"name": "浙江", "value": [27747.65, 5.72, "浙江"]},
                {"name": "河南", "value": [23092.36, 4.76, "河南"]},
                {"name": "河北", "value": [20394.26, 4.21, "河北"]},
                {"name": "辽宁", "value": [18457.3, 3.81, "辽宁"]},
                {"name": "四川", "value": [17185.48, 3.54, "四川"]},
                {"name": "上海", "value": [17165.98, 3.54, "上海"]},
            ],
        },
        {
            "time": 2015,
            "data": [
                {"name": "广东", "value": [72812.55, 9.35, "广东"]},
                {"name": "江苏", "value": [70116.38, 9, "江苏"]},
                {"name": "山东", "value": [63002.3, 8.09, "山东"]},
                {"name": "浙江", "value": [42886, 5.51, "浙江"]},
                {"name": "河南", "value": [37010.25, 4.75, "河南"]},
                {"name": "台湾", "value": [32604.52, 4.19, "台湾"]},
                {"name": "四川", "value": [30103.1, 3.87, "四川"]},
                {"name": "河北", "value": [29806.1, 3.83, "河北"]},
                {"name": "湖北", "value": [29550.19, 3.8, "湖北"]},
                {"name": "湖南", "value": [29047.2, 3.73, "湖南"]},
            ],
        },
    ]
    
    
    
    def get_year_chart(year: int):
        map_data = [
            [[x["name"], x["value"]] for x in d["data"]] for d in data if d["time"] == year
        ][0]
        min_data, max_data = (
            min([d[1][0] for d in map_data]),
            max([d[1][0] for d in map_data]),
        )
        map_chart = (
            Map()
            .add(
                series_name="",
                data_pair=map_data,
                label_opts=opts.LabelOpts(is_show=False),
                is_map_symbol_show=False,
                itemstyle_opts={
                    "normal": {"areaColor": "#323c48", "borderColor": "#404a59"},
                    "emphasis": {
                        "label": {"show": Timeline},
                        "areaColor": "rgba(255,255,255, 0.5)",
                    },
                },
            )
            .set_global_opts(
                title_opts=opts.TitleOpts(
                    title="Changes in China's provincial GDP rankings since 1980",
                    subtitle="unit: 100 million yuan",
                    pos_left="center",
                    pos_top="top",
                    title_textstyle_opts=opts.TextStyleOpts(
                        font_size=25, color="rgba(255,255,255, 0.9)"
                    ),
                ),
                tooltip_opts=opts.TooltipOpts(
                    is_show=True,
                    formatter=JsCode(
                        """function(params) {
                        if ('value' in params.data) {
                            return params.data.value[2] + ': ' + params.data.value[0];
                        }
                    }"""
                    ),
                ),
                visualmap_opts=opts.VisualMapOpts(
                    is_calculable=True,
                    dimension=0,
                    pos_left="10",
                    pos_top="center",
                    range_text=["High", "Low"],
                    range_color=["lightskyblue", "yellow", "orangered"],
                    textstyle_opts=opts.TextStyleOpts(color="#ddd"),
                    min_=min_data,
                    max_=max_data,
                ),
            )
        )
    
        bar_x_data = [x[0] for x in map_data]
    
        # 这里注释的部分会导致 label 和 value 与 饼图不一致
        # 使用下面的 List[Dict] 就可以解决这个问题了。
        # bar_y_data = [x[1][0] for x in map_data]
        bar_y_data = [{"name": x[0], "value": x[1][0]} for x in map_data]
        bar = (
            Bar()
            .add_xaxis(xaxis_data=bar_x_data)
            .add_yaxis(
                series_name="",
                yaxis_index=1,
                yaxis_data=bar_y_data,
                label_opts=opts.LabelOpts(
                    is_show=True, position="right", formatter="{b}: {c}"
                ),
            )
            .reversal_axis()
            .set_global_opts(
                xaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(is_show=False)),
                yaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(is_show=False)),
                tooltip_opts=opts.TooltipOpts(is_show=False),
                visualmap_opts=opts.VisualMapOpts(
                    is_calculable=True,
                    dimension=0,
                    pos_left="10",
                    pos_top="center",
                    range_text=["High", "Low"],
                    range_color=["lightskyblue", "yellow", "orangered"],
                    textstyle_opts=opts.TextStyleOpts(color="#ddd"),
                    min_=min_data,
                    max_=max_data,
                ),
                graphic_opts=[
                    opts.GraphicGroup(
                        graphic_item=opts.GraphicItem(
                            rotation=JsCode("Math.PI / 4"),
                            bounding="raw",
                            right=110,
                            bottom=110,
                            z=100,
                        ),
                        children=[
                            opts.GraphicRect(
                                graphic_item=opts.GraphicItem(left="center", top="center", z=100),
                                graphic_shape_opts=opts.GraphicShapeOpts(width=400, height=50),
                                graphic_basicstyle_opts=opts.GraphicBasicStyleOpts(
                                    fill="rgba(0,0,0,0.3)"
                                ),
                            ),
                            opts.GraphicText(
                                graphic_item=opts.GraphicItem(left="center", top="center", z=100),
                                graphic_textstyle_opts=opts.GraphicTextStyleOpts(
                                    text=f"{str(year)} ",
                                    font="bold 26px Microsoft YaHei",
                                    graphic_basicstyle_opts=opts.GraphicBasicStyleOpts(fill="#fff"),
                                ),
                            ),
                        ],
                    )
                ],
            )
        )
    
        pie_data = [[x[0], x[1][0]] for x in map_data]
        percent_sum = sum([x[1][1] for x in map_data])
        rest_value = 0
        for d in map_data:
            rest_percent = 100.0
            rest_percent = rest_percent - percent_sum
            rest_value = d[1][0] * (rest_percent / d[1][1])
        pie_data.append(["other provinces", rest_value])
        pie = (
            Pie()
            .add(
                series_name="",
                data_pair=pie_data,
                radius=["12%", "20%"],
                center=["75%", "85%"],
                itemstyle_opts=opts.ItemStyleOpts(
                    border_width=1, border_color="rgba(0,0,0,0.3)"
                ),
            )
            .set_global_opts(
                tooltip_opts=opts.TooltipOpts(is_show=True, formatter="{b} {d}%"),
                legend_opts=opts.LegendOpts(is_show=False),
            )
        )
    
        grid_chart = (
            Grid()
            .add(
                bar,
                grid_opts=opts.GridOpts(
                    pos_left="10", pos_right="45%", pos_top="70%", pos_bottom="5"
                ),
            )
            .add(pie, grid_opts=opts.GridOpts())
            .add(map_chart, grid_opts=opts.GridOpts())
        )
    
        return grid_chart
    
    import pyecharts.options as opts
    from pyecharts.globals import ThemeType
    from pyecharts.commons.utils import JsCode
    from pyecharts.charts import Timeline, Grid, Bar, Map, Pie
    
    
    time_list = [1980, 2000, 2005, 2010, 2015]
    timeline = Timeline(
        init_opts=opts.InitOpts(width="1200px", height="800px", theme=ThemeType.DARK)
    )
    for y in time_list:
        g = get_year_chart(year=y)
        timeline.add(g, time_point=str(y))
    
    timeline.add_schema(
        orient="vertical",
        is_auto_play=True,
        is_inverse=True,
        play_interval=5000,
        pos_left="null",
        pos_right="5",
        pos_top="20",
        pos_bottom="20",
        width="50",
        label_opts=opts.LabelOpts(is_show=True, color="#fff"),
    )
    
    # timeline.render("china_gdp_from_1980.html")
    timeline.render_notebook()
    

    在这里插入图片描述

    香港人口密度图

    MAP_DATA = [
        ["中西区", 20057.34],
        ["湾仔", 15477.48],
        ["东区", 31686.1],
        ["南区", 6992.6],
        ["油尖旺", 44045.49],
        ["深水埗", 40689.64],
        ["九龙城", 37659.78],
        ["黄大仙", 45180.97],
        ["观塘", 55204.26],
        ["葵青", 21900.9],
        ["荃湾", 4918.26],
        ["屯门", 5881.84],
        ["元朗", 4178.01],
        ["北区", 2227.92],
        ["大埔", 2180.98],
        ["沙田", 9172.94],
        ["西贡", 3368],
        ["离岛", 806.98],
    ]
    
    NAME_MAP_DATA = {
        # "key": "value"
        # "name on the hong kong map": "name in the MAP DATA",
        "中西区": "中西区",
        "东区": "东区",
        "离岛区": "离岛",
        "九龙城区": "九龙城",
        "葵青区": "葵青",
        "观塘区": "观塘",
        "北区": "北区",
        "西贡区": "西贡",
        "沙田区": "沙田",
        "深水埗区": "深水埗",
        "南区": "南区",
        "大埔区": "大埔",
        "荃湾区": "荃湾",
        "屯门区": "屯门",
        "湾仔区": "湾仔",
        "黄大仙区": "黄大仙",
        "油尖旺区": "油尖旺",
        "元朗区": "元朗",
    }
    
    
    import ssl
    
    import pyecharts.options as opts
    from pyecharts.charts import Map
    from pyecharts.datasets import register_url
    
    ssl._create_default_https_context = ssl._create_unverified_context
    
    register_url("https://echarts-maps.github.io/echarts-china-cities-js")
    
    WIKI_LINK = (
        "http://zh.wikipedia.org/wiki/"
        "%E9%A6%99%E6%B8%AF%E8%A1%8C%E6%94%BF%E5%8D%80%E5%8A%83#cite_note-12"
    )
    
    
    c=(
        Map(init_opts=opts.InitOpts(width="900px", height="600px"))
        .add(
            series_name="Population Density of 18 Districts in Hong Kong",
            maptype="香港",
            data_pair=MAP_DATA,
            name_map=NAME_MAP_DATA,
            is_map_symbol_show=False,
        )
        .set_global_opts(
            title_opts=opts.TitleOpts(
                title="Population Density of Hong Kong's 18 Districts (2011)",
                subtitle="data from Wikipedia",
                subtitle_link=WIKI_LINK,
            ),
            tooltip_opts=opts.TooltipOpts(
                trigger="item", formatter="{b}<br/>{c} (p / km2)"
            ),
            visualmap_opts=opts.VisualMapOpts(
                min_=800,
                max_=50000,
                range_text=["High", "Low"],
                is_calculable=True,
                range_color=["lightskyblue", "yellow", "orangered"],
            ),
        )
    #     .render("population_density_of_HongKong_v2.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    全国各省市地图

    from pyecharts import options as opts
    from pyecharts.charts import Map
    from pyecharts.faker import Faker
    
    c = (
        Map()
        .add(
            "Lab A",
            [list(z) for z in zip(Faker.guangdong_city, Faker.values())],
            "china-cities",
            label_opts=opts.LabelOpts(is_show=False),
        )
        .set_global_opts(
            title_opts=opts.TitleOpts(title="Map-China city map"),
            visualmap_opts=opts.VisualMapOpts(),
        )
    #     .render("map_china_cities.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    地图不显示类别信息

    from pyecharts import options as opts
    from pyecharts.charts import Map
    from pyecharts.faker import Faker
    
    c = (
        Map()
        .add("Lab A", [list(z) for z in zip(Faker.provinces, Faker.values())], "china")
        .set_series_opts(label_opts=opts.LabelOpts(is_show=False))
        .set_global_opts(title_opts=opts.TitleOpts(title="Map-without_label"))
    #     .render("map_without_label.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    连续型数据地图

    from pyecharts import options as opts
    from pyecharts.charts import Map
    from pyecharts.faker import Faker
    
    c = (
        Map()
        .add("Lab A", [list(z) for z in zip(Faker.provinces, Faker.values())], "china")
        .set_global_opts(
            title_opts=opts.TitleOpts(title="Map-VisualMap"),
            visualmap_opts=opts.VisualMapOpts(max_=200),
        )
        #     .render("map_visualmap.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    带有移动线的3D地图

    example_data = [
        [[119.107078, 36.70925, 1000], [116.587245, 35.415393, 1000]],
        [[117.000923, 36.675807], [120.355173, 36.082982]],
        [[118.047648, 36.814939], [118.66471, 37.434564]],
        [[121.391382, 37.539297], [119.107078, 36.70925]],
        [[116.587245, 35.415393], [122.116394, 37.509691]],
        [[119.461208, 35.428588], [118.326443, 35.065282]],
        [[116.307428, 37.453968], [115.469381, 35.246531]],
    ]
    
    from pyecharts import options as opts
    from pyecharts.charts import Map3D
    from pyecharts.globals import ChartType
    
    
    c = (
        Map3D()
        .add_schema(
            maptype="山东",
            itemstyle_opts=opts.ItemStyleOpts(
                color="rgb(5,101,123)",
                opacity=1,
                border_width=0.8,
                border_color="rgb(62,215,213)",
            ),
            light_opts=opts.Map3DLightOpts(
                main_color="#fff",
                main_intensity=1.2,
                is_main_shadow=False,
                main_alpha=55,
                main_beta=10,
                ambient_intensity=0.3,
            ),
            view_control_opts=opts.Map3DViewControlOpts(center=[-10, 0, 10]),
            post_effect_opts=opts.Map3DPostEffectOpts(is_enable=False),
        )
        .add(
            series_name="",
            data_pair=example_data,
            type_=ChartType.LINES3D,
            effect=opts.Lines3DEffectOpts(
                is_show=True,
                period=4,
                trail_width=3,
                trail_length=0.5,
                trail_color="#f00",
                trail_opacity=1,
            ),
            linestyle_opts=opts.LineStyleOpts(is_show=False, color="#fff", opacity=0),
        )
        .set_global_opts(title_opts=opts.TitleOpts(title="Map3D-Lines3D"))
    #     .render("map3d_with_lines3d.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    显示数据点的3D地图

    example_data = [
        ("黑龙江", [127.9688, 45.368, 100]),
        ("内蒙古", [110.3467, 41.4899, 100]),
        ("吉林", [125.8154, 44.2584, 100]),
        ("辽宁", [123.1238, 42.1216, 100]),
        ("河北", [114.4995, 38.1006, 100]),
        ("天津", [117.4219, 39.4189, 100]),
        ("山西", [112.3352, 37.9413, 100]),
        ("陕西", [109.1162, 34.2004, 100]),
        ("甘肃", [103.5901, 36.3043, 100]),
        ("宁夏", [106.3586, 38.1775, 100]),
        ("青海", [101.4038, 36.8207, 100]),
        ("新疆", [87.9236, 43.5883, 100]),
        ("西藏", [91.11, 29.97, 100]),
        ("四川", [103.9526, 30.7617, 100]),
        ("重庆", [108.384366, 30.439702, 100]),
        ("山东", [117.1582, 36.8701, 100]),
        ("河南", [113.4668, 34.6234, 100]),
        ("江苏", [118.8062, 31.9208, 100]),
        ("安徽", [117.29, 32.0581, 100]),
        ("湖北", [114.3896, 30.6628, 100]),
        ("浙江", [119.5313, 29.8773, 100]),
        ("福建", [119.4543, 25.9222, 100]),
        ("江西", [116.0046, 28.6633, 100]),
        ("湖南", [113.0823, 28.2568, 100]),
        ("贵州", [106.6992, 26.7682, 100]),
        ("广西", [108.479, 23.1152, 100]),
        ("海南", [110.3893, 19.8516, 100]),
        ("上海", [121.4648, 31.2891, 100]),
    ]
    
    from pyecharts import options as opts
    from pyecharts.charts import Map3D
    from pyecharts.globals import ChartType
    from pyecharts.commons.utils import JsCode
    
    
    
    c = (
        Map3D()
        .add_schema(
            itemstyle_opts=opts.ItemStyleOpts(
                color="rgb(5,101,123)",
                opacity=1,
                border_width=0.8,
                border_color="rgb(62,215,213)",
            ),
            map3d_label=opts.Map3DLabelOpts(
                is_show=False,
                formatter=JsCode("function(data){return data.name + " " + data.value[2];}"),
            ),
            emphasis_label_opts=opts.LabelOpts(
                is_show=False,
                color="#fff",
                font_size=10,
                background_color="rgba(0,23,11,0)",
            ),
            light_opts=opts.Map3DLightOpts(
                main_color="#fff",
                main_intensity=1.2,
                main_shadow_quality="high",
                is_main_shadow=False,
                main_beta=10,
                ambient_intensity=0.3,
            ),
        )
        .add(
            series_name="Scatter3D",
            data_pair=example_data,
            type_=ChartType.SCATTER3D,
            bar_size=1,
            shading="lambert",
            label_opts=opts.LabelOpts(
                is_show=False,
                formatter=JsCode("function(data){return data.name + ' ' + data.value[2];}"),
            ),
        )
        .set_global_opts(title_opts=opts.TitleOpts(title="Map3D-Scatter3D"))
    #     .render("map3d_with_scatter3d.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    显示3D柱状图的3D地图

    example_data = [
        ("黑龙江", [127.9688, 45.368, 100]),
        ("内蒙古", [110.3467, 41.4899, 300]),
        ("吉林", [125.8154, 44.2584, 300]),
        ("辽宁", [123.1238, 42.1216, 300]),
        ("河北", [114.4995, 38.1006, 300]),
        ("天津", [117.4219, 39.4189, 300]),
        ("山西", [112.3352, 37.9413, 300]),
        ("陕西", [109.1162, 34.2004, 300]),
        ("甘肃", [103.5901, 36.3043, 300]),
        ("宁夏", [106.3586, 38.1775, 300]),
        ("青海", [101.4038, 36.8207, 300]),
        ("新疆", [87.9236, 43.5883, 300]),
        ("西藏", [91.11, 29.97, 300]),
        ("四川", [103.9526, 30.7617, 300]),
        ("重庆", [108.384366, 30.439702, 300]),
        ("山东", [117.1582, 36.8701, 300]),
        ("河南", [113.4668, 34.6234, 300]),
        ("江苏", [118.8062, 31.9208, 300]),
        ("安徽", [117.29, 32.0581, 300]),
        ("湖北", [114.3896, 30.6628, 300]),
        ("浙江", [119.5313, 29.8773, 300]),
        ("福建", [119.4543, 25.9222, 300]),
        ("江西", [116.0046, 28.6633, 300]),
        ("湖南", [113.0823, 28.2568, 300]),
        ("贵州", [106.6992, 26.7682, 300]),
        ("广西", [108.479, 23.1152, 300]),
        ("海南", [110.3893, 19.8516, 300]),
        ("上海", [121.4648, 31.2891, 1300]),
    ]
    
    from pyecharts import options as opts
    from pyecharts.charts import Map3D
    from pyecharts.globals import ChartType
    from pyecharts.commons.utils import JsCode
    
    
    
    c = (
        Map3D()
        .add_schema(
            itemstyle_opts=opts.ItemStyleOpts(
                color="rgb(5,101,123)",
                opacity=1,
                border_width=0.8,
                border_color="rgb(62,215,213)",
            ),
            map3d_label=opts.Map3DLabelOpts(
                is_show=False,
                formatter=JsCode("function(data){return data.name + " " + data.value[2];}"),
            ),
            emphasis_label_opts=opts.LabelOpts(
                is_show=False,
                color="#fff",
                font_size=10,
                background_color="rgba(0,23,11,0)",
            ),
            light_opts=opts.Map3DLightOpts(
                main_color="#fff",
                main_intensity=1.2,
                main_shadow_quality="high",
                is_main_shadow=False,
                main_beta=10,
                ambient_intensity=0.3,
            ),
        )
        .add(
            series_name="bar3D",
            data_pair=example_data,
            type_=ChartType.BAR3D,
            bar_size=1,
            shading="lambert",
            label_opts=opts.LabelOpts(
                is_show=False,
                formatter=JsCode("function(data){return data.name + ' ' + data.value[2];}"),
            ),
        )
        .set_global_opts(title_opts=opts.TitleOpts(title="Map3D-Bar3D"))
    #     .render("map3d_with_bar3d.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    全国行政区划地图

    from pyecharts import options as opts
    from pyecharts.charts import Map3D
    from pyecharts.globals import ChartType
    
    c = (
        Map3D()
        .add_schema(
            itemstyle_opts=opts.ItemStyleOpts(
                color="rgb(5,101,123)",
                opacity=1,
                border_width=0.8,
                border_color="rgb(62,215,213)",
            ),
            map3d_label=opts.Map3DLabelOpts(
                is_show=True,
                text_style=opts.TextStyleOpts(
                    color="#fff", font_size=16, background_color="rgba(0,0,0,0)"
                ),
            ),
            emphasis_label_opts=opts.LabelOpts(is_show=True),
            light_opts=opts.Map3DLightOpts(
                main_color="#fff",
                main_intensity=1.2,
                is_main_shadow=False,
                main_alpha=55,
                main_beta=10,
                ambient_intensity=0.3,
            ),
        )
        .add(series_name="", data_pair="", maptype=ChartType.MAP3D)
        .set_global_opts(
            title_opts=opts.TitleOpts(title="China 3D Map-Base"),
            visualmap_opts=opts.VisualMapOpts(is_show=False),
            tooltip_opts=opts.TooltipOpts(is_show=True),
        )
    #     .render("map3d_china_base.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    世界人口分布

    import pyecharts.options as opts
    from pyecharts.charts import MapGlobe
    from pyecharts.faker import POPULATION
    
    data = [x for _, x in POPULATION[1:]]
    low, high = min(data), max(data)
    
    c = (
        MapGlobe()
        .add_schema()
        .add(
            maptype="world",
            series_name="World Population",
            data_pair=POPULATION[1:],
            is_map_symbol_show=False,
            label_opts=opts.LabelOpts(is_show=False),
        )
        .set_global_opts(
            visualmap_opts=opts.VisualMapOpts(
                min_=low,
                max_=high,
                range_text=["max", "min"],
                is_calculable=True,
                range_color=["lightskyblue", "yellow", "orangered"],
            )
        )
    #     .render("map_globe_base.html")
    )
    c.render_notebook()
    

    在这里插入图片描述

    展开全文
  • 包括中国整个地图的数据、各省的数据、各地市数据、各区县数据。文件以各地区的行政区划代码命名,参考:http://www.mca.gov.cn/article/sj/xzqh/2019/201901-06/201906211421.html
  • echarts离线地图json文件压缩包。(包括全国地图,全国各省地图,全国各市地图,全国各区县地图,以全国省市区县所对应行政区划代码命名方便查找,可直接用于echarts地图的显示)
  • * 身份证前6位【ABCDEF】为行政区划数字代码(简称数字码)说明(参考《GB/T 2260-2007 中华人民共和国行政区划代码》): * 该数字码的编制原则和结构分析,它采用三层六位层次码结构,按层次分别表示我国各省(...
  • 证件号相关校验规则

    2019-10-24 09:43:03
    * 身份证前6位【ABCDEF】为行政区划数字代码(简称数字码)说明(参考《GB/T 2260-2007 中华人民共和国行政区划代码》): * 该数字码的编制原则和结构分析,它采用三层六位层次码结构,按层次分别表示我国各省...
  • GeoMapData_CN2020.zip

    2020-06-10 18:06:32
    echarts的geoJson数据,最新中国省市区县geoJSON格式地图数据(包含子区域) ...全国省市区县所对应行政区划代码以及中心点的坐标:location.json (方便用于echarts上显示某个点的位置) 可直接用于echarts地图的显示
  • 身份证号校验

    2019-10-10 19:36:52
    * 身份证前6位【ABCDEF】为行政区划数字代码(简称数字码)说明(参考《GB/T 2260-2007 中华人民共和国行政区划代码》): * 该数字码的编制原则和结构分析,它采用三层六位层次码结构,按层次分别表示我国各省...
  • 身份证前6位【ABCDEF】为行政区划数字代码(简称数字码)说明(参考《GB/T 2260-2007 中华人民共和国行政区划代码》):该数字码的编制原则和结构分析,它采用三层六位层次码结构,按层次分别表示我国各省(自治区,...
  • 最新全国省市区县geoJSON格式的地图数据...全国省市区县所对应行政区划代码以及中心点的坐标:location.json (方便用于echarts上显示某个点的位置) 可直接用于echarts地图的显示 数据来源: datav的地图选择器..

空空如也

空空如也

1 2
收藏数 37
精华内容 14
关键字:

各省行政区划代码