pyecharts 画一下股票的月K图(输出html)

\['2020-08-26', '5.14', '6.53', '6.66', '5.11', '6423625', '3906770742.00', '30.51', '28.54', '1.45', '48.51'\], \['2020-09-30', '7.09', '5.87', '7.09', '5.59', '7039025', '4506484323.00', '22.97', '-10.11', '-0.66', '53.15'\], \['2020-10-30', '6.07', '5.99', '6.47', '5.91', '3783786', '2471554013.00', '9.54', '2.04', '0.12', '28.57'\], \['2020-11-30', '5.97', '5.62', '6.44', '5.55', '4047399', '2560981705.00', '14.86', '-6.18', '-0.37', '30.56'\], \['2020-12-31', '5.67', '5.42', '5.76', '5.20', '2886695', '1684655931.00', '9.96', '-3.56', '-0.20', '21.80'\], \['2021-01-29', '5.42', '7.36', '8.05', '5.16', '7640483', '5291177056.00', '53.32', '35.79', '1.94', '57.69'\], \['2021-02-26', '7.44', '7.87', '8.84', '6.59', '8235466', '6544950998.00', '30.57', '6.93', '0.51', '62.19'\], \['2021-03-31', '8.07', '7.53', '8.25', '6.69', '5833777', '4496212299.00', '19.82', '-4.32', '-0.34', '44.05'\], \['2021-04-30', '7.69', '6.88', '8.02', '6.79', '3923921', '3013422470.00', '16.33', '-8.63', '-0.65', '29.63'\], \['2021-05-31', '6.89', '7.51', '7.94', '6.84', '2746401', '2099111916.00', '15.99', '9.16', '0.63', '20.74'\], \['2021-06-30', '7.53', '8.23', '9.19', '7.14', '7794692', '6709314568.00', '27.30', '9.59', '0.72', '58.86'\], \['2021-07-19', '8.24', '10.67', '11.95', '7.88', '10017719', '10669508743.00', '49.45', '29.65', '2.44', '75.64'\], \['2021-08-31', '11.77', '16.50', '17.06', '9.70', '20297795', '27371926576.00', '68.98', '54.64', '5.83', '153.26'\], \['2021-09-30', '16.69', '13.92', '19.99', '12.58', '19294129', '32401495744.00', '44.91', '-15.64', '-2.58', '145.68'\], \['2021-10-29', '14.18', '17.75', '17.75', '12.94', '13808354', '21672718912.00', '34.55', '27.51', '3.83', '104.26'\], \['2021-11-30', '17.91', '13.66', '18.11', '13.26', '11772719', '18237051136.00', '27.32', '-23.04', '-4.09', '88.89'\], \['2021-12-31', '13.66', '12.77', '14.42', '11.58', '5325380', '7249270033.00', '20.79', '-6.52', '-0.89', '40.21'\], \['2022-01-28', '12.94', '10.97', '12.98', '10.51', '2732294', '3364879969.00', '19.34', '-14.10', '-1.80', '20.63'\], \['2022-02-28', '11.12', '12.27', '12.87', '10.61', '4104936', '4940177528.00', '20.60', '11.85', '1.30', '30.99'\], \['2022-03-31', '12.19', '10.16', '12.22', '9.60', '4051685', '4491776249.00', '21.35', '-17.20', '-2.11', '30.59'\], \['2022-04-29', '10.14', '9.84', '12.04', '8.81', '4963021', '5496150013.00', '31.79', '-3.15', '-0.32', '37.46'\], \['2022-05-31', '9.83', '10.70', '10.93', '9.76', '3231527', '3455467851.00', '11.89', '8.74', '0.86', '24.00'\], \['2022-06-30', '10.70', '16.95', '18.19', '10.63', '14963011', '22209774597.00', '70.65', '58.41', '6.25', '111.15'\], \['2022-07-29', '16.69', '14.06', '18.04', '13.97', '12483798', '19912673477.07', '24.01', '-17.05', '-2.89', '92.73'\], \['2022-08-31', '13.94', '12.01', '14.38', '11.97', '6291990', '8595945381.44', '17.14', '-14.58', '-2.05', '46.74'\], \['2022-09-30', '11.97', '10.80', '12.46', '10.79', '3994493', '4774203485.00', '13.91', '-10.07', '-1.21', '29.67'\], \['2022-10-31', '10.80', '10.85', '11.84', '10.43', '2782249', '3190329589.48', '13.06', '0.46', '0.05', '20.67'\], \['2022-11-30', '10.72', '11.02', '12.21', '10.70', '3927731', '4664457134.07', '13.92', '1.57', '0.17', '29.18'\], \['2022-12-30', '11.13', '10.21', '12.05', '10.18', '3409690', '3937347733.68', '16.97', '-7.35', '-0.81', '25.33'\], \['2023-01-31', '10.19', '11.16', '11.24', '10.02', '2182122', '2392438893.39', '11.95', '9.30', '0.95', '16.19'\], \['2023-02-28', '11.18', '11.05', '11.42', '10.60', '3180931', '3631484275.60', '7.35', '-0.99', '-0.11', '23.60'\], \['2023-03-31', '11.08', '10.05', '11.20', '9.78', '2253026', '2430002135.22', '12.85', '-9.05', '-1.00', '16.72'\], \['2023-04-28', '10.09', '9.04', '10.15', '8.70', '2067576', '2016893100.13', '14.43', '-10.05', '-1.01', '15.34'\], \['2023-05-31', '9.04', '8.25', '9.08', '8.21', '1690058', '1529483680.22', '9.62', '-8.74', '-0.79', '12.54'\], \['2023-06-30', '8.24', '8.04', '8.77', '7.77', '2122551', '1792292298.98', '12.12', '-2.55', '-0.21', '15.55'\], \['2023-07-31', '8.09', '8.50', '8.79', '7.92', '3504565', '2932372429.58', '10.82', '5.72', '0.46', '25.67'\], \['2023-08-31', '8.50', '7.48', '8.58', '7.44', '2222389', '1818424854.88', '13.41', '-12.00', '-1.02', '16.28'\], \['2023-09-28', '7.52', '7.07', '7.84', '7.03', '1553478', '1167179999.54', '10.83', '-5.48', '-0.41', '11.38'\], \['2023-10-31', '7.06', '7.05', '7.20', '6.38', '1708094', '1186972884.06', '11.60', '-0.28', '-0.02', '12.51'\], \['2023-11-30', '7.07', '6.98', '7.78', '6.94', '2562231', '1888396247.32', '11.91', '-0.99', '-0.07', '18.77'\], \['2023-12-29', '7.01', '7.06', '7.17', '6.38', '2652404', '1833913392.31', '11.32', '1.15', '0.08', '19.43'\], \['2024-01-31', '7.08', '5.77', '7.23', '5.75', '2525187', '1675073126.41', '20.96', '-18.27', '-1.29', '18.47'\], \['2024-02-29', '5.76', '6.87', '7.19', '4.79', '4620783', '3052209409.18', '41.59', '19.06', '1.10', '33.80'\], \['2024-03-29', '6.84', '6.94', '7.41', '6.46', '4201298', '2952679162.11', '13.83', '1.02', '0.07', '30.73'\], \['2024-04-30', '6.99', '6.96', '7.28', '6.17', '4273420', '2971379672.42', '15.99', '0.29', '0.02', '31.25'\], \['2024-05-31', '7.01', '7.67', '8.79', '6.98', '10529867', '8423034183.77', '26.01', '10.20', '0.71', '77.01'\], \['2024-06-28', '7.49', '6.73', '7.53', '6.67', '3267576', '2338292022.21', '11.21', '-12.26', '-0.94', '23.87'\], \['2024-07-31', '6.73', '6.95', '7.28', '6.43', '2899562', '1994554243.74', '12.63', '3.27', '0.22', '21.21'\], \['2024-08-30', '6.98', '7.33', '7.62', '6.16', '3696219', '2538348397.90', '21.01', '5.47', '0.38', '27.04'\], \['2024-09-30', '7.30', '9.71', '9.79', '7.27', '16231836', '13240259699.44', '34.38', '32.47', '2.38', '92.58'\], \['2024-10-31', '10.68', '18.88', '18.88', '8.91', '27049633', '32713369037.32', '102.68', '94.44', '9.17', '154.28'\], \['2024-11-29', '19.68', '19.16', '22.88', '14.31', '65196946', '120453192460.87', '45.39', '1.48', '0.28', '371.87'\], \['2024-12-31', '18.51', '14.47', '22.88', '14.44', '40480198', '73496279450.08', '44.05', '-24.48', '-4.69', '230.17'\], \['2025-01-27', '14.42', '13.10', '15.38', '12.23', '18111814', '24821352939.50', '21.77', '-9.47', '-1.37', '102.98'\], \['2025-02-28', '13.08', '13.39', '14.49', '12.68', '18873627', '25749754663.77', '13.82', '2.21', '0.29', '107.31'\], \['2025-03-31', '13.30', '11.95', '14.05', '11.86', '12746158', '16699590835.01', '16.36', '-10.75', '-1.44', '72.47'\], \['2025-04-30', '11.90', '11.01', '12.05', '9.60', '7351525', '8079140749.51', '20.50', '-7.87', '-0.94', '41.80'\], \['2025-05-30', '11.08', '11.15', '12.08', '11.02', '8081281', '9217852563.41', '9.63', '1.27', '0.14', '45.95'\]

python 复制代码
import get_stock_data as gsd
from pyecharts import options as opts
from pyecharts.charts import Kline
import pandas as pd
from pyecharts.commons.utils import JsCode
#01.股票代码

date_list=[]#日期列表
open_list=[]#开盘价列表
close_list=[]#收盘价列表
high_list=[]#最高价列表
low_list=[]#最低价列表
vol_list=[]#成交量列表
amount_list=[]#成交额列表
amplitude_list=[]#振幅列表
pct_chg_list=[]#涨跌幅列表
price_change_list=[]#涨跌额列表
turnover_rate_list=[]#换手率列表
#03.获取股票数据
stock_name="002312"
stock_data=gsd.get_stock_data(stock_name)
for i in stock_data:
    date_list.append(i[0])
    open_list.append(i[1])
    close_list.append(i[2])
    high_list.append(i[3])
    low_list.append(i[4])
    vol_list.append(i[5])
    amount_list.append(i[6])
    amplitude_list.append(i[7])
    pct_chg_list.append(i[8])
    price_change_list.append(i[9])
    turnover_rate_list.append(i[10])
# print(date_list[0])
# print(date_list[-1])
# print(date_list)


# date_rng = pd.date_range(start=date_list[0], end=date_list[-1], freq='M')
# print(type(date_rng))
#日期
    #开盘价ok
    #收盘价ok
    #最高价
    #最低价
    #成交量
    #成交额
    #振幅
    #涨跌幅
    #涨跌额
    #换手率
data = {
    'date': date_list,#日期
    'open': open_list,#开盘价
    'close': close_list,#收盘价
    'high': high_list,#最高价
    'low': low_list,#最低价
    'vol': vol_list,#成交量
    'amount': amount_list,#成交额
    'amplitude': amplitude_list,#振幅
    'pct_chg': pct_chg_list,#涨跌幅
    'price_change': price_change_list,#涨跌额
    'turnover_rate': turnover_rate_list,#换手率

}
df = pd.DataFrame(data)
kline = (
    Kline()
    # .add_xaxis(df['date'].dt.strftime('%Y-%m-%d').tolist())
    .add_xaxis(date_list)
    .add_yaxis(
        series_name='股价',
        y_axis=df[['open', 
                   'close',
                   'high',
                   'low',
                   'vol',
                   'amount',
                   'amplitude',
                   'pct_chg',
                   'price_change',
                   'turnover_rate'
                    ]].values.tolist(),
        itemstyle_opts=opts.ItemStyleOpts(
            color="#ec0000",
            color0="#00da3c"
        )
    )
    .set_global_opts(
        title_opts=opts.TitleOpts(title="股票月K线图"),
        xaxis_opts=opts.AxisOpts(type_='category'),
        yaxis_opts=opts.AxisOpts(is_scale=True),
        tooltip_opts=opts.TooltipOpts(padding = 7)


    )
)
kline.render("Month_kline"+stock_name+".html")
html 复制代码
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
                <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>

    
</head>
<body >
    <div id="0e50c02a57f94c73a67eb87e43f978bf" class="chart-container" style="width:900px; height:500px; "></div>
    <script>
        var chart_0e50c02a57f94c73a67eb87e43f978bf = echarts.init(
            document.getElementById('0e50c02a57f94c73a67eb87e43f978bf'), 'white', {renderer: 'canvas'});
        var option_0e50c02a57f94c73a67eb87e43f978bf = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },
    "color": [
        "#5470c6",
        "#91cc75",
        "#fac858",
        "#ee6666",
        "#73c0de",
        "#3ba272",
        "#fc8452",
        "#9a60b4",
        "#ea7ccc"
    ],
    "series": [
        {
            "type": "candlestick",
            "name": "\u80a1\u4ef7",
            "coordinateSystem": "cartesian2d",
            "colorBy": "series",
            "legendHoverLink": true,
            "hoverAnimation": true,
            "data": [
                [
                    "5.14",
                    "6.53",
                    "6.66",
                    "5.11",
                    "6423625",
                    "3906770742.00",
                    "30.51",
                    "28.54",
                    "1.45",
                    "48.51"
                ],
                [
                    "7.09",
                    "5.87",
                    "7.09",
                    "5.59",
                    "7039025",
                    "4506484323.00",
                    "22.97",
                    "-10.11",
                    "-0.66",
                    "53.15"
                ],
                [
                    "6.07",
                    "5.99",
                    "6.47",
                    "5.91",
                    "3783786",
                    "2471554013.00",
                    "9.54",
                    "2.04",
                    "0.12",
                    "28.57"
                ],
                [
                    "5.97",
                    "5.62",
                    "6.44",
                    "5.55",
                    "4047399",
                    "2560981705.00",
                    "14.86",
                    "-6.18",
                    "-0.37",
                    "30.56"
                ],
                [
                    "5.67",
                    "5.42",
                    "5.76",
                    "5.20",
                    "2886695",
                    "1684655931.00",
                    "9.96",
                    "-3.56",
                    "-0.20",
                    "21.80"
                ],
                [
                    "5.42",
                    "7.36",
                    "8.05",
                    "5.16",
                    "7640483",
                    "5291177056.00",
                    "53.32",
                    "35.79",
                    "1.94",
                    "57.69"
                ],
                [
                    "7.44",
                    "7.87",
                    "8.84",
                    "6.59",
                    "8235466",
                    "6544950998.00",
                    "30.57",
                    "6.93",
                    "0.51",
                    "62.19"
                ],
                [
                    "8.07",
                    "7.53",
                    "8.25",
                    "6.69",
                    "5833777",
                    "4496212299.00",
                    "19.82",
                    "-4.32",
                    "-0.34",
                    "44.05"
                ],
                [
                    "7.69",
                    "6.88",
                    "8.02",
                    "6.79",
                    "3923921",
                    "3013422470.00",
                    "16.33",
                    "-8.63",
                    "-0.65",
                    "29.63"
                ],
                [
                    "6.89",
                    "7.51",
                    "7.94",
                    "6.84",
                    "2746401",
                    "2099111916.00",
                    "15.99",
                    "9.16",
                    "0.63",
                    "20.74"
                ],
                [
                    "7.53",
                    "8.23",
                    "9.19",
                    "7.14",
                    "7794692",
                    "6709314568.00",
                    "27.30",
                    "9.59",
                    "0.72",
                    "58.86"
                ],
                [
                    "8.24",
                    "10.67",
                    "11.95",
                    "7.88",
                    "10017719",
                    "10669508743.00",
                    "49.45",
                    "29.65",
                    "2.44",
                    "75.64"
                ],
                [
                    "11.77",
                    "16.50",
                    "17.06",
                    "9.70",
                    "20297795",
                    "27371926576.00",
                    "68.98",
                    "54.64",
                    "5.83",
                    "153.26"
                ],
                [
                    "16.69",
                    "13.92",
                    "19.99",
                    "12.58",
                    "19294129",
                    "32401495744.00",
                    "44.91",
                    "-15.64",
                    "-2.58",
                    "145.68"
                ],
                [
                    "14.18",
                    "17.75",
                    "17.75",
                    "12.94",
                    "13808354",
                    "21672718912.00",
                    "34.55",
                    "27.51",
                    "3.83",
                    "104.26"
                ],
                [
                    "17.91",
                    "13.66",
                    "18.11",
                    "13.26",
                    "11772719",
                    "18237051136.00",
                    "27.32",
                    "-23.04",
                    "-4.09",
                    "88.89"
                ],
                [
                    "13.66",
                    "12.77",
                    "14.42",
                    "11.58",
                    "5325380",
                    "7249270033.00",
                    "20.79",
                    "-6.52",
                    "-0.89",
                    "40.21"
                ],
                [
                    "12.94",
                    "10.97",
                    "12.98",
                    "10.51",
                    "2732294",
                    "3364879969.00",
                    "19.34",
                    "-14.10",
                    "-1.80",
                    "20.63"
                ],
                [
                    "11.12",
                    "12.27",
                    "12.87",
                    "10.61",
                    "4104936",
                    "4940177528.00",
                    "20.60",
                    "11.85",
                    "1.30",
                    "30.99"
                ],
                [
                    "12.19",
                    "10.16",
                    "12.22",
                    "9.60",
                    "4051685",
                    "4491776249.00",
                    "21.35",
                    "-17.20",
                    "-2.11",
                    "30.59"
                ],
                [
                    "10.14",
                    "9.84",
                    "12.04",
                    "8.81",
                    "4963021",
                    "5496150013.00",
                    "31.79",
                    "-3.15",
                    "-0.32",
                    "37.46"
                ],
                [
                    "9.83",
                    "10.70",
                    "10.93",
                    "9.76",
                    "3231527",
                    "3455467851.00",
                    "11.89",
                    "8.74",
                    "0.86",
                    "24.00"
                ],
                [
                    "10.70",
                    "16.95",
                    "18.19",
                    "10.63",
                    "14963011",
                    "22209774597.00",
                    "70.65",
                    "58.41",
                    "6.25",
                    "111.15"
                ],
                [
                    "16.69",
                    "14.06",
                    "18.04",
                    "13.97",
                    "12483798",
                    "19912673477.07",
                    "24.01",
                    "-17.05",
                    "-2.89",
                    "92.73"
                ],
                [
                    "13.94",
                    "12.01",
                    "14.38",
                    "11.97",
                    "6291990",
                    "8595945381.44",
                    "17.14",
                    "-14.58",
                    "-2.05",
                    "46.74"
                ],
                [
                    "11.97",
                    "10.80",
                    "12.46",
                    "10.79",
                    "3994493",
                    "4774203485.00",
                    "13.91",
                    "-10.07",
                    "-1.21",
                    "29.67"
                ],
                [
                    "10.80",
                    "10.85",
                    "11.84",
                    "10.43",
                    "2782249",
                    "3190329589.48",
                    "13.06",
                    "0.46",
                    "0.05",
                    "20.67"
                ],
                [
                    "10.72",
                    "11.02",
                    "12.21",
                    "10.70",
                    "3927731",
                    "4664457134.07",
                    "13.92",
                    "1.57",
                    "0.17",
                    "29.18"
                ],
                [
                    "11.13",
                    "10.21",
                    "12.05",
                    "10.18",
                    "3409690",
                    "3937347733.68",
                    "16.97",
                    "-7.35",
                    "-0.81",
                    "25.33"
                ],
                [
                    "10.19",
                    "11.16",
                    "11.24",
                    "10.02",
                    "2182122",
                    "2392438893.39",
                    "11.95",
                    "9.30",
                    "0.95",
                    "16.19"
                ],
                [
                    "11.18",
                    "11.05",
                    "11.42",
                    "10.60",
                    "3180931",
                    "3631484275.60",
                    "7.35",
                    "-0.99",
                    "-0.11",
                    "23.60"
                ],
                [
                    "11.08",
                    "10.05",
                    "11.20",
                    "9.78",
                    "2253026",
                    "2430002135.22",
                    "12.85",
                    "-9.05",
                    "-1.00",
                    "16.72"
                ],
                [
                    "10.09",
                    "9.04",
                    "10.15",
                    "8.70",
                    "2067576",
                    "2016893100.13",
                    "14.43",
                    "-10.05",
                    "-1.01",
                    "15.34"
                ],
                [
                    "9.04",
                    "8.25",
                    "9.08",
                    "8.21",
                    "1690058",
                    "1529483680.22",
                    "9.62",
                    "-8.74",
                    "-0.79",
                    "12.54"
                ],
                [
                    "8.24",
                    "8.04",
                    "8.77",
                    "7.77",
                    "2122551",
                    "1792292298.98",
                    "12.12",
                    "-2.55",
                    "-0.21",
                    "15.55"
                ],
                [
                    "8.09",
                    "8.50",
                    "8.79",
                    "7.92",
                    "3504565",
                    "2932372429.58",
                    "10.82",
                    "5.72",
                    "0.46",
                    "25.67"
                ],
                [
                    "8.50",
                    "7.48",
                    "8.58",
                    "7.44",
                    "2222389",
                    "1818424854.88",
                    "13.41",
                    "-12.00",
                    "-1.02",
                    "16.28"
                ],
                [
                    "7.52",
                    "7.07",
                    "7.84",
                    "7.03",
                    "1553478",
                    "1167179999.54",
                    "10.83",
                    "-5.48",
                    "-0.41",
                    "11.38"
                ],
                [
                    "7.06",
                    "7.05",
                    "7.20",
                    "6.38",
                    "1708094",
                    "1186972884.06",
                    "11.60",
                    "-0.28",
                    "-0.02",
                    "12.51"
                ],
                [
                    "7.07",
                    "6.98",
                    "7.78",
                    "6.94",
                    "2562231",
                    "1888396247.32",
                    "11.91",
                    "-0.99",
                    "-0.07",
                    "18.77"
                ],
                [
                    "7.01",
                    "7.06",
                    "7.17",
                    "6.38",
                    "2652404",
                    "1833913392.31",
                    "11.32",
                    "1.15",
                    "0.08",
                    "19.43"
                ],
                [
                    "7.08",
                    "5.77",
                    "7.23",
                    "5.75",
                    "2525187",
                    "1675073126.41",
                    "20.96",
                    "-18.27",
                    "-1.29",
                    "18.47"
                ],
                [
                    "5.76",
                    "6.87",
                    "7.19",
                    "4.79",
                    "4620783",
                    "3052209409.18",
                    "41.59",
                    "19.06",
                    "1.10",
                    "33.80"
                ],
                [
                    "6.84",
                    "6.94",
                    "7.41",
                    "6.46",
                    "4201298",
                    "2952679162.11",
                    "13.83",
                    "1.02",
                    "0.07",
                    "30.73"
                ],
                [
                    "6.99",
                    "6.96",
                    "7.28",
                    "6.17",
                    "4273420",
                    "2971379672.42",
                    "15.99",
                    "0.29",
                    "0.02",
                    "31.25"
                ],
                [
                    "7.01",
                    "7.67",
                    "8.79",
                    "6.98",
                    "10529867",
                    "8423034183.77",
                    "26.01",
                    "10.20",
                    "0.71",
                    "77.01"
                ],
                [
                    "7.49",
                    "6.73",
                    "7.53",
                    "6.67",
                    "3267576",
                    "2338292022.21",
                    "11.21",
                    "-12.26",
                    "-0.94",
                    "23.87"
                ],
                [
                    "6.73",
                    "6.95",
                    "7.28",
                    "6.43",
                    "2899562",
                    "1994554243.74",
                    "12.63",
                    "3.27",
                    "0.22",
                    "21.21"
                ],
                [
                    "6.98",
                    "7.33",
                    "7.62",
                    "6.16",
                    "3696219",
                    "2538348397.90",
                    "21.01",
                    "5.47",
                    "0.38",
                    "27.04"
                ],
                [
                    "7.30",
                    "9.71",
                    "9.79",
                    "7.27",
                    "16231836",
                    "13240259699.44",
                    "34.38",
                    "32.47",
                    "2.38",
                    "92.58"
                ],
                [
                    "10.68",
                    "18.88",
                    "18.88",
                    "8.91",
                    "27049633",
                    "32713369037.32",
                    "102.68",
                    "94.44",
                    "9.17",
                    "154.28"
                ],
                [
                    "19.68",
                    "19.16",
                    "22.88",
                    "14.31",
                    "65196946",
                    "120453192460.87",
                    "45.39",
                    "1.48",
                    "0.28",
                    "371.87"
                ],
                [
                    "18.51",
                    "14.47",
                    "22.88",
                    "14.44",
                    "40480198",
                    "73496279450.08",
                    "44.05",
                    "-24.48",
                    "-4.69",
                    "230.17"
                ],
                [
                    "14.42",
                    "13.10",
                    "15.38",
                    "12.23",
                    "18111814",
                    "24821352939.50",
                    "21.77",
                    "-9.47",
                    "-1.37",
                    "102.98"
                ],
                [
                    "13.08",
                    "13.39",
                    "14.49",
                    "12.68",
                    "18873627",
                    "25749754663.77",
                    "13.82",
                    "2.21",
                    "0.29",
                    "107.31"
                ],
                [
                    "13.30",
                    "11.95",
                    "14.05",
                    "11.86",
                    "12746158",
                    "16699590835.01",
                    "16.36",
                    "-10.75",
                    "-1.44",
                    "72.47"
                ],
                [
                    "11.90",
                    "11.01",
                    "12.05",
                    "9.60",
                    "7351525",
                    "8079140749.51",
                    "20.50",
                    "-7.87",
                    "-0.94",
                    "41.80"
                ],
                [
                    "11.08",
                    "11.25",
                    "12.08",
                    "11.02",
                    "7579098",
                    "8652953427.48",
                    "9.63",
                    "2.18",
                    "0.24",
                    "43.09"
                ]
            ],
            "itemStyle": {
                "color": "#ec0000",
                "color0": "#00da3c"
            },
            "selectedMode": false,
            "large": false,
            "clip": true,
            "zlevel": 0,
            "z": 2
        }
    ],
    "legend": [
        {
            "data": [
                "\u80a1\u4ef7"
            ],
            "selected": {},
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14,
            "backgroundColor": "transparent",
            "borderColor": "#ccc",
            "borderRadius": 0,
            "pageButtonItemGap": 5,
            "pageButtonPosition": "end",
            "pageFormatter": "{current}/{total}",
            "pageIconColor": "#2f4554",
            "pageIconInactiveColor": "#aaa",
            "pageIconSize": 15,
            "animationDurationUpdate": 800,
            "selector": false,
            "selectorPosition": "auto",
            "selectorItemGap": 7,
            "selectorButtonGap": 10
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 7,
        "order": "seriesAsc"
    },
    "xAxis": [
        {
            "type": "category",
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "animation": true,
            "animationThreshold": 2000,
            "animationDuration": 1000,
            "animationEasing": "cubicOut",
            "animationDelay": 0,
            "animationDurationUpdate": 300,
            "animationEasingUpdate": "cubicOut",
            "animationDelayUpdate": 0,
            "data": [
                "2020-08-26",
                "2020-09-30",
                "2020-10-30",
                "2020-11-30",
                "2020-12-31",
                "2021-01-29",
                "2021-02-26",
                "2021-03-31",
                "2021-04-30",
                "2021-05-31",
                "2021-06-30",
                "2021-07-19",
                "2021-08-31",
                "2021-09-30",
                "2021-10-29",
                "2021-11-30",
                "2021-12-31",
                "2022-01-28",
                "2022-02-28",
                "2022-03-31",
                "2022-04-29",
                "2022-05-31",
                "2022-06-30",
                "2022-07-29",
                "2022-08-31",
                "2022-09-30",
                "2022-10-31",
                "2022-11-30",
                "2022-12-30",
                "2023-01-31",
                "2023-02-28",
                "2023-03-31",
                "2023-04-28",
                "2023-05-31",
                "2023-06-30",
                "2023-07-31",
                "2023-08-31",
                "2023-09-28",
                "2023-10-31",
                "2023-11-30",
                "2023-12-29",
                "2024-01-31",
                "2024-02-29",
                "2024-03-29",
                "2024-04-30",
                "2024-05-31",
                "2024-06-28",
                "2024-07-31",
                "2024-08-30",
                "2024-09-30",
                "2024-10-31",
                "2024-11-29",
                "2024-12-31",
                "2025-01-27",
                "2025-02-28",
                "2025-03-31",
                "2025-04-30",
                "2025-05-28"
            ]
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": true,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "animation": true,
            "animationThreshold": 2000,
            "animationDuration": 1000,
            "animationEasing": "cubicOut",
            "animationDelay": 0,
            "animationDurationUpdate": 300,
            "animationEasingUpdate": "cubicOut",
            "animationDelayUpdate": 0
        }
    ],
    "title": [
        {
            "show": true,
            "text": "\u80a1\u7968\u6708K\u7ebf\u56fe",
            "target": "blank",
            "subtarget": "blank",
            "padding": 5,
            "itemGap": 10,
            "textAlign": "auto",
            "textVerticalAlign": "auto",
            "triggerEvent": false
        }
    ]
};
        chart_0e50c02a57f94c73a67eb87e43f978bf.setOption(option_0e50c02a57f94c73a67eb87e43f978bf);
    </script>
</body>
</html>
相关推荐
前端码虫14 分钟前
JS分支和循环
开发语言·前端·javascript
GISer_Jing16 分钟前
MonitorSDK_性能监控(从Web Vital性能指标、PerformanceObserver API和具体代码实现)
开发语言·前端·javascript
余厌厌厌17 分钟前
墨香阁小说阅读前端项目
前端
fanged18 分钟前
Angularjs-Hello
前端·javascript·angular.js
lichuangcsdn19 分钟前
springboot集成websocket给前端推送消息
前端·websocket·网络协议
程序员阿龙19 分钟前
基于Web的濒危野生动物保护信息管理系统设计(源码+定制+开发)濒危野生动物监测与保护平台开发 面向公众参与的野生动物保护与预警信息系统
前端·数据可视化·野生动物保护·濒危物种·态环境监测·web系统开发
岸边的风23 分钟前
JavaScript篇:JS事件冒泡:别让点击事件‘传染’!
开发语言·前端·javascript
前端大卫2 小时前
Vue3 里的 h 函数的运用场景!
前端·vue.js
ladymorgana2 小时前
【OSS】 前端如何直接上传到OSS 上返回https链接,如果做到OSS图片资源加密访问
前端·网络协议·https
lichuangcsdn2 小时前
利用python工具you-get下载网页的视频文件
python