数据爬取

使用Python来爬取数据,需要在pycharm中下载相应的插件。

import time
import json
import requests
from datetime import datetime
import pandas as pd
import numpy as np

def catch_data():
    url = 'https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5'
    reponse = requests.get(url=url).json()
    #返回数据字典
    data = json.loads(reponse['data'])
    return data

data = catch_data()
data.keys()
#print("字典所有的键为: %s" % data.keys())

# 数据集包括["国内总量","国内新增","更新时间","数据明细","每日数据","每日新增"]

lastUpdateTime = data['lastUpdateTime']
chinaTotal = data['chinaTotal']
chinaAdd = data['chinaAdd']
#print(chinaTotal)
#print(chinaAdd)



# 数据明细,数据结构比较复杂,一步一步打印出来看,先明白数据结构
areaTree = data['areaTree']
# 国内数据
china_data = areaTree[0]['children']
china_list = []
for a in range(len(china_data)):
    province = china_data[a]['name']
    province_list = china_data[a]['children']
    for b in range(len(province_list)):
        city = province_list[b]['name']
        total = province_list[b]['total']
        today = province_list[b]['today']
        china_dict = {}
        china_dict['province'] = province
        china_dict['city'] = city
        china_dict['total'] = total
        china_dict['today'] = today
        china_list.append(china_dict)

china_data = pd.DataFrame(china_list)
china_data.head()

# 定义数据处理函数
def confirm(x):
    confirm = eval(str(x))['confirm']
    return confirm
def suspect(x):
    suspect = eval(str(x))['suspect']
    return suspect
def dead(x):
    dead = eval(str(x))['dead']
    return dead
def heal(x):
    heal =  eval(str(x))['heal']
    return heal


# 函数映射
china_data['confirm'] = china_data['total'].map(confirm)
china_data['suspect'] = china_data['total'].map(suspect)
china_data['dead'] = china_data['total'].map(dead)
china_data['heal'] = china_data['total'].map(heal)
china_data['addconfirm'] = china_data['today'].map(confirm)
china_data['addsuspect'] = china_data['today'].map(confirm)
china_data['adddead'] = china_data['today'].map(confirm)
china_data['addheal'] = china_data['today'].map(confirm)
china_data = china_data[["province","city","confirm","suspect","dead","heal","addconfirm","addsuspect","adddead","addheal"]]
china_data.head()


global_data = pd.DataFrame(data['areaTree'])
global_data['confirm'] = global_data['total'].map(confirm)
global_data['suspect'] = global_data['total'].map(suspect)
global_data['dead'] = global_data['total'].map(dead)
global_data['heal'] = global_data['total'].map(heal)
global_data['addconfirm'] = global_data['today'].map(confirm)
global_data['addsuspect'] = global_data['today'].map(confirm)
global_data['adddead'] = global_data['today'].map(confirm)
global_data['addheal'] = global_data['today'].map(confirm)
#world_name = pd.read_excel("世界各国中英文对照.xlsx")
#global_data = pd.merge(global_data,world_name,left_on ="name",right_on = "中文",how="inner")
#global_data = global_data[["name","英文","confirm","suspect","dead","heal","addconfirm","addsuspect","adddead","addheal"]]
#global_data.head()


chinaDayList = pd.DataFrame(data['chinaDayList'])
#chinaDayList = chinaDayList[['date','confirm','suspect','dead','heal']]
chinaDayList.head()


chinaDayAddList = pd.DataFrame(data['chinaDayAddList'])
#chinaDayAddList = chinaDayAddList[['date','confirm','suspect','dead','heal']]
chinaDayAddList.head()

from pyecharts.charts import * #导入所有图表
from pyecharts import options as opts
#导入pyecharts的主题(如果不使用可以跳过)
from pyecharts.globals import ThemeType

total_pie = Pie(init_opts=opts.InitOpts(theme=ThemeType.WESTEROS,width = '500px',height ='350px'))  #设置主题,和画布大小
total_pie.add("",[list(z) for z in zip(chinaTotal.keys(), chinaTotal.values())],
            center=["50%", "50%"], #图的位置
            radius=[50, 80])   #内外径大小
total_pie.set_global_opts(
            title_opts=opts.TitleOpts(title="全国总量",subtitle=("截止"+lastUpdateTime)))
total_pie.set_series_opts(label_opts=opts.LabelOpts(formatter="{c}"))  #标签格式
total_pie.render_notebook()


totaladd_pie = Pie(init_opts=opts.InitOpts(theme=ThemeType.WESTEROS,width = '500px',height ='350px'))  #设置主题,和画布大小
totaladd_pie.add("",[list(z) for z in zip(chinaAdd.keys(), chinaAdd.values())],
            center=["50%", "50%"],
            radius=[50, 80])
totaladd_pie.set_global_opts(
            title_opts=opts.TitleOpts(title="昨日新增"))
totaladd_pie.set_series_opts(label_opts=opts.LabelOpts(formatter="{c}"))  #标签格式
totaladd_pie.render_notebook()


world_map = Map(init_opts=opts.InitOpts(theme=ThemeType.WESTEROS))
world_map.add("",[list(z) for z in zip(list(global_data["confirm"]), list(global_data["confirm"]))], "world",is_map_symbol_show=False)
world_map.set_global_opts(title_opts=opts.TitleOpts(title="2019_nCoV-世界疫情地图"),
                          visualmap_opts=opts.VisualMapOpts(is_piecewise=True,
                          pieces = [
                        {"min": 101 , "label": '>100'}, #不指定 max,表示 max 为无限大
                        {"min": 10, "max": 100, "label": '10-100'},
                        {"min": 0, "max": 9, "label": '0-9' }]))
world_map.set_series_opts(label_opts=opts.LabelOpts(is_show=False))
world_map.render_notebook()

world_map = Map(init_opts=opts.InitOpts(theme=ThemeType.WESTEROS))
world_map.add("",[list(z) for z in zip(list(global_data["confirm"]), list(global_data["confirm"]))], "world",is_map_symbol_show=False)
world_map.set_global_opts(title_opts=opts.TitleOpts(title="2019_nCoV-世界疫情地图"),
                          visualmap_opts=opts.VisualMapOpts(is_piecewise=True,
                          pieces = [
                        {"min": 101 , "label": '>100'}, #不指定 max,表示 max 为无限大
                        {"min": 10, "max": 100, "label": '10-100'},
                        {"min": 0, "max": 9, "label": '0-9' }]))
world_map.set_series_opts(label_opts=opts.LabelOpts(is_show=False))
world_map.render_notebook()

#数据处理
area_data = china_data.groupby("province")["confirm"].sum().reset_index()
area_data.columns = ["province","confirm"]
area_map = Map(init_opts=opts.InitOpts(theme=ThemeType.WESTEROS))
area_map.add("",[list(z) for z in zip(list(area_data["province"]), list(area_data["confirm"]))], "china",is_map_symbol_show=False)
area_map.set_global_opts(title_opts=opts.TitleOpts(title="2019_nCoV中国疫情地图"),visualmap_opts=opts.VisualMapOpts(is_piecewise=True,
                pieces = [
                        {"min": 1001 , "label": '>1000',"color": "#893448"}, #不指定 max,表示 max 为无限大
                        {"min": 500, "max": 1000, "label": '500-1000',"color": "#ff585e"},
                        {"min": 101, "max": 499, "label": '101-499',"color": "#fb8146"},
                        {"min": 10, "max": 100, "label": '10-100',"color": "#ffb248"},
                        {"min": 0, "max": 9, "label": '0-9',"color" : "#fff2d1" }]))
area_map.render_notebook()

line1 = Line(init_opts=opts.InitOpts(theme=ThemeType.WESTEROS))
#line1.add_xaxis(list(chinaDayList["date"]))
#line1.add_yaxis("治愈",list(chinaDayList["heal"]),is_smooth=True)
#line1.add_yaxis("死亡", list(chinaDayList["dead"]),is_smooth=True)
#line1.set_global_opts(title_opts=opts.TitleOpts(title="Line1-治愈与死亡趋势"))
#line1.render_notebook()


line2 = Line(init_opts=opts.InitOpts(theme=ThemeType.SHINE))
#line2.add_xaxis(list(chinaDayList["date"]))
#line2.add_yaxis("确诊",list(chinaDayList["confirm"]))
#line2.add_yaxis("疑似", list(chinaDayList["suspect"]))
#line2.set_global_opts(title_opts=opts.TitleOpts(title="Line2-确诊与疑似趋势"))
#line2.render_notebook()


bar = Bar(init_opts=opts.InitOpts(theme=ThemeType.WESTEROS,width = '900px',height ='400px'))
#bar .add_xaxis(list(chinaDayAddList["date"]))
#bar .add_yaxis("确诊", list(chinaDayAddList["confirm"]))
#bar .add_yaxis("疑似", list(chinaDayAddList["suspect"]))
#bar .add_yaxis("死亡", list(chinaDayAddList["dead"]))
#bar .add_yaxis("治愈", list(chinaDayAddList["heal"]))
#bar .set_global_opts(title_opts=opts.TitleOpts(title="每日新增数据趋势"))
#bar.render_notebook()


page = Page()
page.add(total_pie)
page.add(totaladd_pie)
page.add(world_map)
page.add(area_map)
page.add(line1)
page.add(line2)
page.add(bar)
page.render('files/show.html')




Show.html 
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/themes/westeros.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/maps/world.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/maps/china.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/themes/shine.js"></script>

    
</head>
<body>
    <style>.box {  }; </style>
    <div class="box">
                <div id="b5493c495c75481dafbd8aa5465feb69" class="chart-container" style="width:500px; height:350px;"></div>
    <script>
        var chart_b5493c495c75481dafbd8aa5465feb69 = echarts.init(
            document.getElementById('b5493c495c75481dafbd8aa5465feb69'), 'westeros', {renderer: 'canvas'});
        var option_b5493c495c75481dafbd8aa5465feb69 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "series": [
        {
            "type": "pie",
            "clockwise": true,
            "data": [
                {
                    "name": "confirm",
                    "value": 82938
                },
                {
                    "name": "heal",
                    "value": 77237
                },
                {
                    "name": "dead",
                    "value": 3338
                },
                {
                    "name": "nowConfirm",
                    "value": 2363
                },
                {
                    "name": "suspect",
                    "value": 107
                },
                {
                    "name": "nowSevere",
                    "value": 295
                },
                {
                    "name": "importedCase",
                    "value": 913
                },
                {
                    "name": "noInfect",
                    "value": 1024
                }
            ],
            "radius": [
                50,
                80
            ],
            "center": [
                "50%",
                "50%"
            ],
            "label": {
                "show": true,
                "position": "top",
                "margin": 8,
                "formatter": "{c}"
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
            "data": [
                "confirm",
                "heal",
                "dead",
                "nowConfirm",
                "suspect",
                "nowSevere",
                "importedCase",
                "noInfect"
            ],
            "selected": {},
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "title": [
        {
            "text": "\u5168\u56fd\u603b\u91cf",
            "subtext": "\u622a\u6b622020-04-05 15:31:28",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_b5493c495c75481dafbd8aa5465feb69.setOption(option_b5493c495c75481dafbd8aa5465feb69);
    </script>
<br/>                <div id="022269587237463cb5386c7b2920fdbe" class="chart-container" style="width:500px; height:350px;"></div>
    <script>
        var chart_022269587237463cb5386c7b2920fdbe = echarts.init(
            document.getElementById('022269587237463cb5386c7b2920fdbe'), 'westeros', {renderer: 'canvas'});
        var option_022269587237463cb5386c7b2920fdbe = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "series": [
        {
            "type": "pie",
            "clockwise": true,
            "data": [
                {
                    "name": "confirm",
                    "value": 77
                },
                {
                    "name": "heal",
                    "value": 253
                },
                {
                    "name": "dead",
                    "value": 3
                },
                {
                    "name": "nowConfirm",
                    "value": -193
                },
                {
                    "name": "suspect",
                    "value": -7
                },
                {
                    "name": "nowSevere",
                    "value": -36
                },
                {
                    "name": "importedCase",
                    "value": 25
                },
                {
                    "name": "noInfect",
                    "value": 47
                }
            ],
            "radius": [
                50,
                80
            ],
            "center": [
                "50%",
                "50%"
            ],
            "label": {
                "show": true,
                "position": "top",
                "margin": 8,
                "formatter": "{c}"
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
            "data": [
                "confirm",
                "heal",
                "dead",
                "nowConfirm",
                "suspect",
                "nowSevere",
                "importedCase",
                "noInfect"
            ],
            "selected": {},
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "title": [
        {
            "text": "\u6628\u65e5\u65b0\u589e",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_022269587237463cb5386c7b2920fdbe.setOption(option_022269587237463cb5386c7b2920fdbe);
    </script>
<br/>                <div id="c1c974ee0ffe4b8fa0218a313dbe1900" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_c1c974ee0ffe4b8fa0218a313dbe1900 = echarts.init(
            document.getElementById('c1c974ee0ffe4b8fa0218a313dbe1900'), 'westeros', {renderer: 'canvas'});
        var option_c1c974ee0ffe4b8fa0218a313dbe1900 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "series": [
        {
            "type": "map",
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "mapType": "world",
            "data": [
                {
                    "name": 82938,
                    "value": 82938
                }
            ],
            "roam": true,
            "zoom": 1,
            "showLegendSymbol": false,
            "emphasis": {},
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
            "data": [
                ""
            ],
            "selected": {
                "": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "title": [
        {
            "text": "2019_nCoV-\u4e16\u754c\u75ab\u60c5\u5730\u56fe",
            "padding": 5,
            "itemGap": 10
        }
    ],
    "visualMap": {
        "show": true,
        "type": "piecewise",
        "min": 0,
        "max": 100,
        "inRange": {
            "color": [
                "#50a3ba",
                "#eac763",
                "#d94e5d"
            ]
        },
        "calculable": true,
        "inverse": false,
        "splitNumber": 5,
        "orient": "vertical",
        "showLabel": true,
        "itemWidth": 20,
        "itemHeight": 14,
        "borderWidth": 0,
        "pieces": [
            {
                "min": 101,
                "label": ">100"
            },
            {
                "min": 10,
                "max": 100,
                "label": "10-100"
            },
            {
                "min": 0,
                "max": 9,
                "label": "0-9"
            }
        ]
    }
};
        chart_c1c974ee0ffe4b8fa0218a313dbe1900.setOption(option_c1c974ee0ffe4b8fa0218a313dbe1900);
    </script>
<br/>                <div id="6ee916d563234611b1341ce612927d05" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_6ee916d563234611b1341ce612927d05 = echarts.init(
            document.getElementById('6ee916d563234611b1341ce612927d05'), 'westeros', {renderer: 'canvas'});
        var option_6ee916d563234611b1341ce612927d05 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "series": [
        {
            "type": "map",
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            },
            "mapType": "china",
            "data": [
                {
                    "name": "\u4e0a\u6d77",
                    "value": 531
                },
                {
                    "name": "\u4e91\u5357",
                    "value": 184
                },
                {
                    "name": "\u5185\u8499\u53e4",
                    "value": 117
                },
                {
                    "name": "\u5317\u4eac",
                    "value": 586
                },
                {
                    "name": "\u53f0\u6e7e",
                    "value": 363
                },
                {
                    "name": "\u5409\u6797",
                    "value": 98
                },
                {
                    "name": "\u56db\u5ddd",
                    "value": 558
                },
                {
                    "name": "\u5929\u6d25",
                    "value": 180
                },
                {
                    "name": "\u5b81\u590f",
                    "value": 75
                },
                {
                    "name": "\u5b89\u5fbd",
                    "value": 990
                },
                {
                    "name": "\u5c71\u4e1c",
                    "value": 779
                },
                {
                    "name": "\u5c71\u897f",
                    "value": 138
                },
                {
                    "name": "\u5e7f\u4e1c",
                    "value": 1524
                },
                {
                    "name": "\u5e7f\u897f",
                    "value": 254
                },
                {
                    "name": "\u65b0\u7586",
                    "value": 76
                },
                {
                    "name": "\u6c5f\u82cf",
                    "value": 651
                },
                {
                    "name": "\u6c5f\u897f",
                    "value": 937
                },
                {
                    "name": "\u6cb3\u5317",
                    "value": 327
                },
                {
                    "name": "\u6cb3\u5357",
                    "value": 1276
                },
                {
                    "name": "\u6d59\u6c5f",
                    "value": 1263
                },
                {
                    "name": "\u6d77\u5357",
                    "value": 168
                },
                {
                    "name": "\u6e56\u5317",
                    "value": 67803
                },
                {
                    "name": "\u6e56\u5357",
                    "value": 1019
                },
                {
                    "name": "\u6fb3\u95e8",
                    "value": 44
                },
                {
                    "name": "\u7518\u8083",
                    "value": 138
                },
                {
                    "name": "\u798f\u5efa",
                    "value": 350
                },
                {
                    "name": "\u897f\u85cf",
                    "value": 1
                },
                {
                    "name": "\u8d35\u5dde",
                    "value": 147
                },
                {
                    "name": "\u8fbd\u5b81",
                    "value": 142
                },
                {
                    "name": "\u91cd\u5e86",
                    "value": 579
                },
                {
                    "name": "\u9655\u897f",
                    "value": 256
                },
                {
                    "name": "\u9752\u6d77",
                    "value": 18
                },
                {
                    "name": "\u9999\u6e2f",
                    "value": 862
                },
                {
                    "name": "\u9ed1\u9f99\u6c5f",
                    "value": 504
                }
            ],
            "roam": true,
            "zoom": 1,
            "showLegendSymbol": false,
            "emphasis": {}
        }
    ],
    "legend": [
        {
            "data": [
                ""
            ],
            "selected": {
                "": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "title": [
        {
            "text": "2019_nCoV\u4e2d\u56fd\u75ab\u60c5\u5730\u56fe",
            "padding": 5,
            "itemGap": 10
        }
    ],
    "visualMap": {
        "show": true,
        "type": "piecewise",
        "min": 0,
        "max": 100,
        "inRange": {
            "color": [
                "#50a3ba",
                "#eac763",
                "#d94e5d"
            ]
        },
        "calculable": true,
        "inverse": false,
        "splitNumber": 5,
        "orient": "vertical",
        "showLabel": true,
        "itemWidth": 20,
        "itemHeight": 14,
        "borderWidth": 0,
        "pieces": [
            {
                "min": 1001,
                "label": ">1000",
                "color": "#893448"
            },
            {
                "min": 500,
                "max": 1000,
                "label": "500-1000",
                "color": "#ff585e"
            },
            {
                "min": 101,
                "max": 499,
                "label": "101-499",
                "color": "#fb8146"
            },
            {
                "min": 10,
                "max": 100,
                "label": "10-100",
                "color": "#ffb248"
            },
            {
                "min": 0,
                "max": 9,
                "label": "0-9",
                "color": "#fff2d1"
            }
        ]
    }
};
        chart_6ee916d563234611b1341ce612927d05.setOption(option_6ee916d563234611b1341ce612927d05);
    </script>
<br/>                <div id="757254e1aef74a4b907c8a4e6382db44" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_757254e1aef74a4b907c8a4e6382db44 = echarts.init(
            document.getElementById('757254e1aef74a4b907c8a4e6382db44'), 'westeros', {renderer: 'canvas'});
        var option_757254e1aef74a4b907c8a4e6382db44 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "series": [],
    "legend": [
        {
            "data": [],
            "selected": {}
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ]
};
        chart_757254e1aef74a4b907c8a4e6382db44.setOption(option_757254e1aef74a4b907c8a4e6382db44);
    </script>
<br/>                <div id="d0f1b091cd7f4dcb8db794b3918e2bfe" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_d0f1b091cd7f4dcb8db794b3918e2bfe = echarts.init(
            document.getElementById('d0f1b091cd7f4dcb8db794b3918e2bfe'), 'shine', {renderer: 'canvas'});
        var option_d0f1b091cd7f4dcb8db794b3918e2bfe = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "series": [],
    "legend": [
        {
            "data": [],
            "selected": {}
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ]
};
        chart_d0f1b091cd7f4dcb8db794b3918e2bfe.setOption(option_d0f1b091cd7f4dcb8db794b3918e2bfe);
    </script>
<br/>                <div id="7978d5f1617549fc88f40fdbf75f83f3" class="chart-container" style="width:900px; height:400px;"></div>
    <script>
        var chart_7978d5f1617549fc88f40fdbf75f83f3 = echarts.init(
            document.getElementById('7978d5f1617549fc88f40fdbf75f83f3'), 'westeros', {renderer: 'canvas'});
        var option_7978d5f1617549fc88f40fdbf75f83f3 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "series": [],
    "legend": [
        {
            "data": [],
            "selected": {}
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ]
};
        chart_7978d5f1617549fc88f40fdbf75f83f3.setOption(option_7978d5f1617549fc88f40fdbf75f83f3);
    </script>
<br/>    </div>
    <script>
    </script>
</body>
</html>

 

posted on 2020-06-11 17:32  迎新  阅读(233)  评论(0编辑  收藏  举报