当前位置:   article > 正文

Python爬取城市天气数据,并作数据可视化_使用爬虫爬取自己家乡近几年的天气状况

使用爬虫爬取自己家乡近几年的天气状况

1.爬取广惠河深2022-2024年的天气数据 

  1. import requests # 发送请求要用的模块 需要额外安装的
  2. import parsel
  3. import csv
  4. f = open('广-惠-河-深天气.csv', mode='a', encoding='utf-8', newline='')
  5. csv_writer = csv.writer(f)
  6. csv_writer.writerow(['日期', '最高温度', '最低温度', '天气', '风向', '城市'])
  7. city_list = [72049, 59287,59293,59493]
  8. for city in city_list:
  9. city_name = ''
  10. if city == 72049:
  11. city_name = '惠州'
  12. elif city == 59287:
  13. city_name = '广州'
  14. elif city == 59293:
  15. city_name = '河源'
  16. elif city == 59493:
  17. city_name = '深圳'
  18. for year in range(2022, 2024):
  19. for month in range(1, 13):
  20. url = f'https://tianqi.2345.com/Pc/GetHistory?areaInfo%5BareaId%5D={city}&areaInfo%5BareaType%5D=2&date%5Byear%5D={year}&date%5Bmonth%5D={month}'
  21. # 1. 发送请求
  22. response = requests.get(url=url)
  23. # 2. 获取数据
  24. html_data = response.json()['data']
  25. # 3. 解析数据
  26. select = parsel.Selector(html_data)
  27. trs = select.css('.history-table tr') # 拿到31个tr
  28. for tr in trs[1:]: # 第一个表头不要
  29. tds = tr.css('td::text').getall() # 针对每个tr进行提取 取出所有的td里面的内容
  30. tds.append(city_name) # 把城市追加到列表里面
  31. print(tds)
  32. # 4. 保存数据
  33. csv_writer.writerow(tds)

爬取的数据如下图所示 

 

 2.读取csv文件

  1. import pandas as pd
  2. data = pd.read_csv('广-惠-河-深天气.csv')
  3. data

3.去除多余字符

  1. #去除多余字符
  2. data[['最高温度','最低温度']] = data[['最高温度','最低温度']].apply(lambda x: x.str.replace('°','').replace('', '0'))
  3. data.head()

4.分割星期和日期

  1. #分割日期与星期
  2. data[['日期','星期']] = data['日期'].str.split(' ',expand=True,n=1)
  3. data

5.筛选出城市数据子集。其中包含了四个城市在不同天气下的天数统计结果。

  1. # 按城市和天气分组,并计算每组的天数
  2. grouped = data.groupby(['城市', '天气']).size().reset_index(name='天数')
  3. # 将结果按城市分为4个DataFrame
  4. gz_weather = grouped[grouped['城市'] == '广州']
  5. hy_weather = grouped[grouped['城市'] == '河源']
  6. hz_weather = grouped[grouped['城市'] == '惠州']
  7. sz_weather = grouped[grouped['城市'] == '深圳']
  8. gz_weather
hy_weather
hz_weather
sz_weather

 

 6.将原有的天气类型按照关键字划分

  1. # 定义一个函数,将原有的天气类型按照关键字划分
  2. def classify_weather(weather):
  3. if '多云' in weather:
  4. return '多云'
  5. elif '晴' in weather:
  6. return '晴'
  7. elif '阴' in weather:
  8. return '阴'
  9. elif '大雨' in weather:
  10. return '雨'
  11. elif '中雨' in weather:
  12. return '雨'
  13. elif '小雨' in weather:
  14. return '雨'
  15. elif '雷阵雨' in weather:
  16. return '雨'
  17. elif '雾' in weather:
  18. return '雾'
  19. else:
  20. return '其他'
  21. # 将原有的天气类型按照关键字划分,并存进新的 DataFrame 中
  22. new_data = data[['城市', '天气']].copy()
  23. new_data['新天气'] = new_data['天气'].apply(classify_weather)
  24. new_data

7.对城市的天气数据按照新天气列分组后,计算每一种天气的天数,然后将“天气”列名改为“天数”得到的数据框。

  1. # 按照城市和新天气列进行分组,并计算每一种天气的天数
  2. count_data = new_data.groupby(['城市', '新天气'])['天气'].count().reset_index()
  3. # 根据条件筛选出符合要求的行
  4. df1 = count_data.loc[count_data['城市'] == '广州']
  5. df2 = count_data.loc[count_data['城市'] == '河源']
  6. df3 = count_data.loc[count_data['城市'] == '惠州']
  7. df4 = count_data.loc[count_data['城市'] == '深圳']
  8. # 将“天气”列名改为“天数”
  9. df5 = df1.rename(columns={'天气': '天数'})
  10. df6 = df2.rename(columns={'天气': '天数'})
  11. df7 = df3.rename(columns={'天气': '天数'})
  12. df8 = df4.rename(columns={'天气': '天数'})
  13. # 输出结果
  14. df5.to_csv('df5.csv',index=False)

上面输出结果保存到csv文件中,如果要查看可以输出df5 查看数据

 

8.筛选出每个城市平均温度等于最高温度和最低温度平均值的数据

  1. # 筛选出平均温度等于最高温度和最低温度平均值的数据
  2. data1 = data[(data['平均温度'] == (data['最高温度'] + data['最低温度']) / 2)]
  3. data_AB = data1[(data1['城市'] == '广州') | (data1['城市'] == '深圳') | (data1['城市'] == '河源') | (data1['城市'] == '惠州')]
  4. #将日期转换为月份并赋值给新的列
  5. data_AB['月份'] = pd.to_datetime(data_AB['日期']).dt.month
  6. #按照城市和月份分组,计算每组的平均气温
  7. grouped_AB = data_AB.groupby(['城市', '月份'])['平均温度'].mean().reset_index()
  8. #按照城市和月份排序
  9. grouped_AB = grouped_AB.sort_values(['城市', '月份'])
  10. #打印结果
  11. grouped_AB

9.绘制广州、河源、惠州和深圳每日平均温度的折线图

  1. import matplotlib as mpl
  2. import matplotlib.pyplot as plt
  3. import matplotlib.ticker as ticker
  4. # 筛选出广州和湛江的数据
  5. gz_data = data[data['城市'] == '广州']
  6. hy_data = data[data['城市'] == '河源']
  7. hz_data = data[data['城市'] == '惠州']
  8. sz_data = data[data['城市'] == '深圳']
  9. # 提取日期和平均温度数据
  10. x = gz_data['日期']
  11. y1 = gz_data['平均温度']
  12. y2 = hy_data['平均温度']
  13. y3 = hz_data['平均温度']
  14. y4 = sz_data['平均温度']
  15. # 绘制折线图
  16. plt.figure(dpi=500, figsize=(10, 5))
  17. plt.title("广河惠深每日平均温度折线图")
  18. plt.plot(x, y1, color='red', label='广州')
  19. plt.plot(x, y2, color='blue', label='河源')
  20. plt.plot(x,y3,color='green',label='惠州')
  21. plt.plot(x,y4,color='yellow',label='深圳')
  22. # 获取图的坐标信息
  23. coordinates = plt.gca()
  24. # 设置x轴每个刻度的间隔天数
  25. xLocator = mpl.ticker.MultipleLocator(30)
  26. coordinates.xaxis.set_major_locator(xLocator)
  27. # 将日期旋转30°
  28. plt.xticks(rotation=30)
  29. plt.xticks(fontsize=8)
  30. plt.ylabel("温度(℃)")
  31. plt.xlabel("日期")
  32. plt.legend()
  33. plt.savefig("广河惠深每日平均温度折线图.png")
  34. plt.show()

10.绘制城市为广州、惠州、深圳、河源的月平均气温数据

  1. data_GZ_HZ_SZ_HY = grouped_AB[(grouped_AB['城市'] == '广州') | (grouped_AB['城市'] == '惠州') | (grouped_AB['城市'] == '深圳') | (grouped_AB['城市'] == '河源')]
  2. #绘制折线图
  3. fig, ax = plt.subplots()
  4. for city in ['广州', '惠州', '深圳', '河源']:
  5. ax.plot(data_GZ_HZ_SZ_HY[data_GZ_HZ_SZ_HY['城市'] == city]['月份'], data_GZ_HZ_SZ_HY[data_GZ_HZ_SZ_HY['城市'] == city]['平均温度'], label=city)
  6. #设置图例和标题
  7. ax.legend()
  8. ax.set_title('广州、惠州、深圳、河源每月气温折线图')
  9. #显示图形
  10. plt.show()

11.绘制四个城市数据对比

  1. import matplotlib.pyplot as plt
  2. #创建一个画布
  3. fig, ax = plt.subplots(figsize=(10, 5))
  4. #绘制广州各类天气条形图
  5. ax.bar(df5['新天气'], df5['天数'], width=0.2, label='广州')
  6. #绘制惠州各类天气条形图
  7. ax.bar(df7['新天气'], df7['天数'], width=0.2, label='惠州', alpha=0.7)
  8. #绘制河源各类天气条形图
  9. ax.bar(df6['新天气'], df6['天数'], width=0.2, label='河源', alpha=0.7)
  10. #绘制深圳各类天气条形图
  11. ax.bar(df8['新天气'], df8['天数'], width=0.2, label='深圳', alpha=0.7)
  12. #设置图例
  13. ax.legend()
  14. #设置 x 轴标签和标题
  15. ax.set_xlabel('天气类型')
  16. ax.set_ylabel('天数')
  17. ax.set_title('广州、惠州、河源、深圳各类天气天数对比')
  18. #显示图表
  19. plt.show()

 

12.各个城市天气占比

  1. import pandas as pd
  2. from pyecharts.charts import Pie
  3. from pyecharts import options as opts
  4. # 读取csv文件并转换为列表格式
  5. df = pd.read_csv('df5.csv')
  6. data_list = df[['新天气', '天数']].values.tolist()
  7. # 生成饼图
  8. pie = Pie()
  9. pie.add("", data_list)
  10. pie.set_global_opts(title_opts=opts.TitleOpts(title="广州各类天气天数占比"))
  11. pie.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}"))
  12. pie.render_notebook()

  1. import pandas as pd
  2. from pyecharts.charts import Pie
  3. from pyecharts import options as opts
  4. # 读取csv文件并转换为列表格式
  5. df = pd.read_csv('df6.csv')
  6. data_list = df[['新天气', '天数']].values.tolist()
  7. # 生成饼图
  8. pie = Pie()
  9. pie.add("", data_list)
  10. pie.set_global_opts(title_opts=opts.TitleOpts(title="河源各类天气天数占比"))
  11. pie.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}"))
  12. pie.render_notebook()

  1. import pandas as pd
  2. from pyecharts.charts import Pie
  3. from pyecharts import options as opts
  4. # 读取csv文件并转换为列表格式
  5. df = pd.read_csv('df7.csv')
  6. data_list = df[['新天气', '天数']].values.tolist()
  7. # 生成饼图
  8. pie = Pie()
  9. pie.add("", data_list)
  10. pie.set_global_opts(title_opts=opts.TitleOpts(title="惠州各类天气天数占比"))
  11. pie.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}"))
  12. pie.render_notebook()

  1. import pandas as pd
  2. from pyecharts.charts import Pie
  3. from pyecharts import options as opts
  4. # 读取csv文件并转换为列表格式
  5. df = pd.read_csv('df8.csv')
  6. data_list = df[['新天气', '天数']].values.tolist()
  7. # 生成饼图
  8. pie = Pie()
  9. pie.add("", data_list)
  10. pie.set_global_opts(title_opts=opts.TitleOpts(title="深圳各类天气天数占比"))
  11. pie.set_series_opts(label_opts=opts.LabelOpts(formatter="{b}"))
  12. pie.render_notebook()

13.统计四个城市每日气温折线图

  1. import matplotlib.pyplot as plt
  2. import matplotlib as mpl
  3. import pandas as pd
  4. # 筛选出广州和湛江的数据
  5. gz_data = data[data['城市'] == '广州']
  6. hy_data = data[data['城市'] == '河源']
  7. hz_data = data[data['城市'] == '惠州']
  8. sz_data = data[data['城市'] == '深圳']
  9. # 提取日期和平均温度数据
  10. x = gz_data['日期']
  11. y1 = gz_data['平均温度']
  12. y2 = hy_data['平均温度']
  13. y3 = hz_data['平均温度']
  14. y4 = sz_data['平均温度']
  15. # 绘制面积图
  16. plt.figure(dpi=500, figsize=(10, 5))
  17. plt.title("广州惠州河源深圳折线图")
  18. plt.fill_between(x, y1, color='red', alpha=0.5, label='广州')
  19. plt.fill_between(x, y2, color='blue', alpha=0.5, label='河源')
  20. plt.fill_between(x, y3, color='yellow', alpha=0.5, label='惠州')
  21. plt.fill_between(x, y4, color='green', alpha=0.5, label='深圳')
  22. # 获取图的坐标信息
  23. coordinates = plt.gca()
  24. # 设置x轴每个刻度的间隔天数
  25. xLocator = mpl.ticker.MultipleLocator(30)
  26. coordinates.xaxis.set_major_locator(xLocator)
  27. # 将日期旋转30°
  28. plt.xticks(rotation=30)
  29. plt.xticks(fontsize=8)
  30. plt.ylabel("温度(℃)")
  31. plt.xlabel("日期")
  32. plt.legend()
  33. plt.savefig("广-惠-河-深折线图")
  34. plt.show()

14.读取四个城市各类天气天数对比图

  1. import matplotlib.pyplot as plt
  2. from pyecharts.charts import Bar
  3. # 读取广州数据并生成柱状图
  4. df1 = pd.read_csv('df5.csv')
  5. data_list1 = df1[['新天气', '天数']].values.tolist()
  6. # 读取河源数据并生成柱状图
  7. df2 = pd.read_csv('df6.csv')
  8. data_list2 = df2[['新天气', '天数']].values.tolist()
  9. # 读取惠州数据并生成柱状图
  10. df3 = pd.read_csv('df7.csv')
  11. data_list3 = df3[['新天气', '天数']].values.tolist()
  12. # 读取深圳数据并生成柱状图
  13. df4 = pd.read_csv('df8.csv')
  14. data_list4 = df4[['新天气', '天数']].values.tolist()
  15. # 合并 x 轴数据
  16. x_data = list(set([i[0] for i in data_list1] + [i[0] for i in data_list2] + [i[0] for i in data_list3] + [i[0] for i in data_list4]))
  17. # 生成柱状图
  18. bar = Bar()
  19. bar.add_xaxis(x_data)
  20. bar.add_yaxis("广州", [df1.loc[df1['新天气']==x, '天数'].tolist()[0] if x in df1['新天气'].tolist() else 0 for x in x_data])
  21. bar.add_yaxis("河源", [df2.loc[df2['新天气']==x, '天数'].tolist()[0] if x in df2['新天气'].tolist() else 0 for x in x_data])
  22. bar.add_yaxis("惠州", [df3.loc[df3['新天气']==x, '天数'].tolist()[0] if x in df3['新天气'].tolist() else 0 for x in x_data])
  23. bar.add_yaxis("深圳", [df4.loc[df4['新天气']==x, '天数'].tolist()[0] if x in df4['新天气'].tolist() else 0 for x in x_data])
  24. bar.set_global_opts(title_opts=opts.TitleOpts(title="广州惠州河源深圳各类天气天数对比图"),
  25. xaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(rotate=-45)),
  26. legend_opts=opts.LegendOpts(pos_left="center"))
  27. bar.render_notebook()

 15.读取四个城市当中一个城市的天气天数对比图

  1. import matplotlib.pyplot as plt
  2. from pyecharts.charts import Bar
  3. # 读取惠州数据并生成柱状图
  4. df3 = pd.read_csv('df7.csv')
  5. data_list3 = df3[['新天气', '天数']].values.tolist()
  6. # 生成柱状图
  7. bar = Bar()
  8. bar.add_xaxis(x_data)
  9. bar.add_yaxis("惠州", [df3.loc[df3['新天气']==x, '天数'].tolist()[0] if x in df3['新天气'].tolist() else 0 for x in x_data])
  10. bar.set_global_opts(title_opts=opts.TitleOpts(title="广州惠州河源深圳各类天气天数对比图"),
  11. xaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(rotate=-45)),
  12. legend_opts=opts.LegendOpts(pos_left="center"))
  13. bar.render_notebook()

当今社会,数据越来越重要,因此,仪表盘成为了一种非常流行的数据可视化方式。通过使用仪表盘,用户可以更轻松地理解数据,从而做出更好的决策。在本文中,我们将介绍如何使用前端网页来实现仪表盘文字。

首先,我们需要一个基本的 HTML 文件。在这个文件中,我们将创建一个仪表盘的基本框架,并使用 CSS 来设置样式。在这个基本框架中,我们将包含一个 div 元素,用于显示仪表盘的文本。我们将使用 JavaScript 来动态地更新这个文本。

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Awesome-pyecharts</title>
  6. <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
  7. <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/jquery.min.js"></script>
  8. <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/jquery-ui.min.js"></script>
  9. <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/ResizeSensor.js"></script>
  10. <link rel="stylesheet" href="https://assets.pyecharts.org/assets/v5/jquery-ui.css">
  11. </head>
  12. <body >
  13. <style>.box { } </style>
  14. <button onclick="downloadCfg()">Save Config</button>
  15. <div class="box">
  16. <div id="c48b9e2d9b7440e1b2f458d54f3b383c" class="chart-container" style="width:900px; height:500px; "></div>
  17. <script>
  18. var chart_c48b9e2d9b7440e1b2f458d54f3b383c = echarts.init(
  19. document.getElementById('c48b9e2d9b7440e1b2f458d54f3b383c'), 'white', {renderer: 'canvas'});
  20. var option_c48b9e2d9b7440e1b2f458d54f3b383c = {
  21. "animation": true,
  22. "animationThreshold": 2000,
  23. "animationDuration": 1000,
  24. "animationEasing": "cubicOut",
  25. "animationDelay": 0,
  26. "animationDurationUpdate": 300,
  27. "animationEasingUpdate": "cubicOut",
  28. "animationDelayUpdate": 0,
  29. "aria": {
  30. "enabled": false
  31. },
  32. "color": [
  33. "#5470c6",
  34. "#91cc75",
  35. "#fac858",
  36. "#ee6666",
  37. "#73c0de",
  38. "#3ba272",
  39. "#fc8452",
  40. "#9a60b4",
  41. "#ea7ccc"
  42. ],
  43. "series": [
  44. {
  45. "type": "bar",
  46. "name": "广州",
  47. "legendHoverLink": true,
  48. "data": [
  49. 247,
  50. 0,
  51. 1,
  52. 14,
  53. 61,
  54. 42
  55. ],
  56. "realtimeSort": false,
  57. "showBackground": false,
  58. "stackStrategy": "samesign",
  59. "cursor": "pointer",
  60. "barMinHeight": 0,
  61. "barCategoryGap": "20%",
  62. "barGap": "30%",
  63. "large": false,
  64. "largeThreshold": 400,
  65. "seriesLayoutBy": "column",
  66. "datasetIndex": 0,
  67. "clip": true,
  68. "zlevel": 0,
  69. "z": 2,
  70. "label": {
  71. "show": true,
  72. "margin": 8
  73. }
  74. },
  75. {
  76. "type": "bar",
  77. "name": "河源",
  78. "legendHoverLink": true,
  79. "data": [
  80. 249,
  81. 0,
  82. 6,
  83. 19,
  84. 62,
  85. 29
  86. ],
  87. "realtimeSort": false,
  88. "showBackground": false,
  89. "stackStrategy": "samesign",
  90. "cursor": "pointer",
  91. "barMinHeight": 0,
  92. "barCategoryGap": "20%",
  93. "barGap": "30%",
  94. "large": false,
  95. "largeThreshold": 400,
  96. "seriesLayoutBy": "column",
  97. "datasetIndex": 0,
  98. "clip": true,
  99. "zlevel": 0,
  100. "z": 2,
  101. "label": {
  102. "show": true,
  103. "margin": 8
  104. }
  105. },
  106. { "type": "bar",
  107. "name": "惠州",
  108. "legendHoverLink": true,
  109. "data": [
  110. 243,
  111. 5,
  112. 7,
  113. 16,
  114. 68,
  115. 26,
  116. ],
  117. "realtimeSort": false,
  118. "showBackground": false,
  119. "stackStrategy": "samesign",
  120. "cursor": "pointer",
  121. "barMinHeight": 0,
  122. "barCategoryGap": "20%",
  123. "barGap": "30%",
  124. "large": false,
  125. "largeThreshold": 400,
  126. "seriesLayoutBy": "column",
  127. "datasetIndex": 0,
  128. "clip": true,
  129. "zlevel": 0,
  130. "z": 2,
  131. "label": {
  132. "show": true,
  133. "margin": 8
  134. }
  135. },
  136. {
  137. "type": "bar",
  138. "name": "深圳",
  139. "legendHoverLink": true,
  140. "data": [
  141. 252,
  142. 0,
  143. 6,
  144. 10,
  145. 58,
  146. 39
  147. ],
  148. "realtimeSort": false,
  149. "showBackground": false,
  150. "stackStrategy": "samesign",
  151. "cursor": "pointer",
  152. "barMinHeight": 0,
  153. "barCategoryGap": "20%",
  154. "barGap": "30%",
  155. "large": false,
  156. "largeThreshold": 400,
  157. "seriesLayoutBy": "column",
  158. "datasetIndex": 0,
  159. "clip": true,
  160. "zlevel": 0,
  161. "z": 2,
  162. "label": {
  163. "show": true,
  164. "margin": 8
  165. }
  166. }
  167. ],
  168. "legend": [
  169. {
  170. "data": [
  171. "广州",
  172. "河源",
  173. "惠州",
  174. "深圳"
  175. ],
  176. "selected": {},
  177. "show": true,
  178. "left": "center",
  179. "padding": 5,
  180. "itemGap": 10,
  181. "itemWidth": 25,
  182. "itemHeight": 14,
  183. "backgroundColor": "transparent",
  184. "borderColor": "#ccc",
  185. "borderWidth": 1,
  186. "borderRadius": 0,
  187. "pageButtonItemGap": 5,
  188. "pageButtonPosition": "end",
  189. "pageFormatter": "{current}/{total}",
  190. "pageIconColor": "#2f4554",
  191. "pageIconInactiveColor": "#aaa",
  192. "pageIconSize": 15,
  193. "animationDurationUpdate": 800,
  194. "selector": false,
  195. "selectorPosition": "auto",
  196. "selectorItemGap": 7,
  197. "selectorButtonGap": 10
  198. }
  199. ],
  200. "tooltip": {
  201. "show": true,
  202. "trigger": "item",
  203. "triggerOn": "mousemove|click",
  204. "axisPointer": {
  205. "type": "line"
  206. },
  207. "showContent": true,
  208. "alwaysShowContent": false,
  209. "showDelay": 0,
  210. "hideDelay": 100,
  211. "enterable": false,
  212. "confine": false,
  213. "appendToBody": false,
  214. "transitionDuration": 0.4,
  215. "textStyle": {
  216. "fontSize": 14
  217. },
  218. "borderWidth": 0,
  219. "padding": 5,
  220. "order": "seriesAsc"
  221. },
  222. "xAxis": [
  223. {
  224. "show": true,
  225. "scale": false,
  226. "nameLocation": "end",
  227. "nameGap": 15,
  228. "gridIndex": 0,
  229. "axisLabel": {
  230. "show": true,
  231. "rotate": -45,
  232. "margin": 8
  233. },
  234. "inverse": false,
  235. "offset": 0,
  236. "splitNumber": 5,
  237. "minInterval": 0,
  238. "splitLine": {
  239. "show": true,
  240. "lineStyle": {
  241. "show": true,
  242. "width": 1,
  243. "opacity": 1,
  244. "curveness": 0,
  245. "type": "solid"
  246. }
  247. },
  248. "data": [
  249. "多云",
  250. "雾",
  251. "其他",
  252. "阴",
  253. "雨",
  254. "晴"
  255. ]
  256. }
  257. ],
  258. "yAxis": [
  259. {
  260. "show": true,
  261. "scale": false,
  262. "nameLocation": "end",
  263. "nameGap": 15,
  264. "gridIndex": 0,
  265. "inverse": false,
  266. "offset": 0,
  267. "splitNumber": 5,
  268. "minInterval": 0,
  269. "splitLine": {
  270. "show": true,
  271. "lineStyle": {
  272. "show": true,
  273. "width": 1,
  274. "opacity": 1,
  275. "curveness": 0,
  276. "type": "solid"
  277. }
  278. }
  279. }
  280. ],
  281. "title": [
  282. {
  283. "show": true,
  284. "text": "广州河源惠州深圳各类天气天数对比图",
  285. "target": "blank",
  286. "subtarget": "blank",
  287. "padding": 5,
  288. "itemGap": 10,
  289. "textAlign": "auto",
  290. "textVerticalAlign": "auto",
  291. "triggerEvent": false
  292. }
  293. ]
  294. };
  295. chart_c48b9e2d9b7440e1b2f458d54f3b383c.setOption(option_c48b9e2d9b7440e1b2f458d54f3b383c);
  296. </script>
  297. <br/> <div id="88ddd5d9c5594bf597661b16ae91e0e4" class="chart-container" style="width:900px; height:500px; "></div>
  298. <script>
  299. var chart_88ddd5d9c5594bf597661b16ae91e0e4 = echarts.init(
  300. document.getElementById('88ddd5d9c5594bf597661b16ae91e0e4'), 'white', {renderer: 'canvas'});
  301. var option_88ddd5d9c5594bf597661b16ae91e0e4 = {
  302. "animation": true,
  303. "animationThreshold": 2000,
  304. "animationDuration": 1000,
  305. "animationEasing": "cubicOut",
  306. "animationDelay": 0,
  307. "animationDurationUpdate": 300,
  308. "animationEasingUpdate": "cubicOut",
  309. "animationDelayUpdate": 0,
  310. "aria": {
  311. "enabled": false
  312. },
  313. "color": [
  314. "#5470c6",
  315. "#91cc75",
  316. "#fac858",
  317. "#ee6666",
  318. "#73c0de",
  319. "#3ba272",
  320. "#fc8452",
  321. "#9a60b4",
  322. "#ea7ccc"
  323. ],
  324. "series": [
  325. {
  326. "type": "pie",
  327. "colorBy": "data",
  328. "legendHoverLink": true,
  329. "selectedMode": false,
  330. "selectedOffset": 10,
  331. "clockwise": true,
  332. "startAngle": 90,
  333. "minAngle": 0,
  334. "minShowLabelAngle": 0,
  335. "avoidLabelOverlap": true,
  336. "stillShowZeroSum": true,
  337. "percentPrecision": 2,
  338. "showEmptyCircle": true,
  339. "emptyCircleStyle": {
  340. "color": "lightgray",
  341. "borderColor": "#000",
  342. "borderWidth": 0,
  343. "borderType": "solid",
  344. "borderDashOffset": 0,
  345. "borderCap": "butt",
  346. "borderJoin": "bevel",
  347. "borderMiterLimit": 10,
  348. "opacity": 1
  349. },
  350. "data": [
  351. {
  352. "name": "其他",
  353. "value": 1
  354. },
  355. {
  356. "name": "多云",
  357. "value": 247
  358. },
  359. {
  360. "name":"晴",
  361. "value": 42
  362. },
  363. {
  364. "name": "阴",
  365. "value": 14
  366. },
  367. {
  368. "name": "雨",
  369. "value": 61
  370. }
  371. ],
  372. "radius": [
  373. "0%",
  374. "75%"
  375. ],
  376. "center": [
  377. "50%",
  378. "50%"
  379. ],
  380. "label": {
  381. "show": true,
  382. "margin": 8,
  383. "formatter": "{b}"
  384. },
  385. "labelLine": {
  386. "show": true,
  387. "showAbove": false,
  388. "length": 15,
  389. "length2": 15,
  390. "smooth": false,
  391. "minTurnAngle": 90,
  392. "maxSurfaceAngle": 90
  393. },
  394. "rippleEffect": {
  395. "show": true,
  396. "brushType": "stroke",
  397. "scale": 2.5,
  398. "period": 4
  399. }
  400. }
  401. ],
  402. "legend": [
  403. {
  404. "data": [
  405. "其他",
  406. "多云",
  407. "阴",
  408. "雨",
  409. "晴"
  410. ],
  411. "selected": {},
  412. "show": true,
  413. "padding": 5,
  414. "itemGap": 10,
  415. "itemWidth": 25,
  416. "itemHeight": 14,
  417. "backgroundColor": "transparent",
  418. "borderColor": "#ccc",
  419. "borderWidth": 1,
  420. "borderRadius": 0,
  421. "pageButtonItemGap": 5,
  422. "pageButtonPosition": "end",
  423. "pageFormatter": "{current}/{total}",
  424. "pageIconColor": "#2f4554",
  425. "pageIconInactiveColor": "#aaa",
  426. "pageIconSize": 15,
  427. "animationDurationUpdate": 800,
  428. "selector": false,
  429. "selectorPosition": "auto",
  430. "selectorItemGap": 7,
  431. "selectorButtonGap": 10
  432. }
  433. ],
  434. "tooltip": {
  435. "show": true,
  436. "trigger": "item",
  437. "triggerOn": "mousemove|click",
  438. "axisPointer": {
  439. "type": "line"
  440. },
  441. "showContent": true,
  442. "alwaysShowContent": false,
  443. "showDelay": 0,
  444. "hideDelay": 100,
  445. "enterable": false,
  446. "confine": false,
  447. "appendToBody": false,
  448. "transitionDuration": 0.4,
  449. "textStyle": {
  450. "fontSize": 14
  451. },
  452. "borderWidth": 0,
  453. "padding": 5,
  454. "order": "seriesAsc"
  455. },
  456. "title": [
  457. {
  458. "show": true,
  459. "text": "广州各类天气天数占比",
  460. "target": "blank",
  461. "subtarget": "blank",
  462. "padding": 5,
  463. "itemGap": 10,
  464. "textAlign": "auto",
  465. "textVerticalAlign": "auto",
  466. "triggerEvent": false
  467. }
  468. ]
  469. };
  470. chart_88ddd5d9c5594bf597661b16ae91e0e4.setOption(option_88ddd5d9c5594bf597661b16ae91e0e4);
  471. </script>
  472. <br/> <div id="8d11665b4f43436cbb0b2ed6ae6b27f9" class="chart-container" style="width:900px; height:500px; "></div>
  473. <script>
  474. var chart_8d11665b4f43436cbb0b2ed6ae6b27f9 = echarts.init(
  475. document.getElementById('8d11665b4f43436cbb0b2ed6ae6b27f9'), 'white', {renderer: 'canvas'});
  476. var option_8d11665b4f43436cbb0b2ed6ae6b27f9 = {
  477. "animation": true,
  478. "animationThreshold": 2000,
  479. "animationDuration": 1000,
  480. "animationEasing": "cubicOut",
  481. "animationDelay": 0,
  482. "animationDurationUpdate": 300,
  483. "animationEasingUpdate": "cubicOut",
  484. "animationDelayUpdate": 0,
  485. "aria": {
  486. "enabled": false
  487. },
  488. "color": [
  489. "#5470c6",
  490. "#91cc75",
  491. "#fac858",
  492. "#ee6666",
  493. "#73c0de",
  494. "#3ba272",
  495. "#fc8452",
  496. "#9a60b4",
  497. "#ea7ccc"
  498. ],
  499. "series": [
  500. {
  501. "type": "pie",
  502. "colorBy": "data",
  503. "legendHoverLink": true,
  504. "selectedMode": false,
  505. "selectedOffset": 10,
  506. "clockwise": true,
  507. "startAngle": 90,
  508. "minAngle": 0,
  509. "minShowLabelAngle": 0,
  510. "avoidLabelOverlap": true,
  511. "stillShowZeroSum": true,
  512. "percentPrecision": 2,
  513. "showEmptyCircle": true,
  514. "emptyCircleStyle": {
  515. "color": "lightgray",
  516. "borderColor": "#000",
  517. "borderWidth": 0,
  518. "borderType": "solid",
  519. "borderDashOffset": 0,
  520. "borderCap": "butt",
  521. "borderJoin": "bevel",
  522. "borderMiterLimit": 10,
  523. "opacity": 1
  524. },
  525. "data": [
  526. {
  527. "name": "其他",
  528. "value": 6
  529. },
  530. {
  531. "name": "多云",
  532. "value": 249
  533. },
  534. {
  535. "name": "晴",
  536. "value": 29
  537. },
  538. {
  539. "name": "阴",
  540. "value": 19
  541. },
  542. {
  543. "name": "雨",
  544. "value": 62
  545. },
  546. ],
  547. "radius": [
  548. "0%",
  549. "75%"
  550. ],
  551. "center": [
  552. "50%",
  553. "50%"
  554. ],
  555. "label": {
  556. "show": true,
  557. "margin": 8,
  558. "formatter": "{b}"
  559. },
  560. "labelLine": {
  561. "show": true,
  562. "showAbove": false,
  563. "length": 15,
  564. "length2": 15,
  565. "smooth": false,
  566. "minTurnAngle": 90,
  567. "maxSurfaceAngle": 90
  568. },
  569. "rippleEffect": {
  570. "show": true,
  571. "brushType": "stroke",
  572. "scale": 2.5,
  573. "period": 4
  574. }
  575. }
  576. ],
  577. "legend": [
  578. {
  579. "data": [
  580. "其他",
  581. "多云",
  582. "晴",
  583. "阴",
  584. "雨"
  585. ],
  586. "selected": {},
  587. "show": true,
  588. "padding": 5,
  589. "itemGap": 10,
  590. "itemWidth": 25,
  591. "itemHeight": 14,
  592. "backgroundColor": "transparent",
  593. "borderColor": "#ccc",
  594. "borderWidth": 1,
  595. "borderRadius": 0,
  596. "pageButtonItemGap": 5,
  597. "pageButtonPosition": "end",
  598. "pageFormatter": "{current}/{total}",
  599. "pageIconColor": "#2f4554",
  600. "pageIconInactiveColor": "#aaa",
  601. "pageIconSize": 15,
  602. "animationDurationUpdate": 800,
  603. "selector": false,
  604. "selectorPosition": "auto",
  605. "selectorItemGap": 7,
  606. "selectorButtonGap": 10
  607. }
  608. ],
  609. "tooltip": {
  610. "show": true,
  611. "trigger": "item",
  612. "triggerOn": "mousemove|click",
  613. "axisPointer": {
  614. "type": "line"
  615. },
  616. "showContent": true,
  617. "alwaysShowContent": false,
  618. "showDelay": 0,
  619. "hideDelay": 100,
  620. "enterable": false,
  621. "confine": false,
  622. "appendToBody": false,
  623. "transitionDuration": 0.4,
  624. "textStyle": {
  625. "fontSize": 14
  626. },
  627. "borderWidth": 0,
  628. "padding": 5,
  629. "order": "seriesAsc"
  630. },
  631. "title": [
  632. {
  633. "show": true,
  634. "text": "河源各类天气占比",
  635. "target": "blank",
  636. "subtarget": "blank",
  637. "padding": 5,
  638. "itemGap": 10,
  639. "textAlign": "auto",
  640. "textVerticalAlign": "auto",
  641. "triggerEvent": false
  642. }
  643. ]
  644. };
  645. chart_8d11665b4f43436cbb0b2ed6ae6b27f9.setOption(option_8d11665b4f43436cbb0b2ed6ae6b27f9);
  646. </script>
  647. <br/> <div id="3c4a8e7c9e8f5aebd9f23d5d3e7c2a3c" class="chart-container" style="width:900px; height:500px; "></div>
  648. <script>
  649. var chart_3c4a8e7c9e8f5aebd9f23d5d3e7c2a3c= echarts.init(
  650. document.getElementById('3c4a8e7c9e8f5aebd9f23d5d3e7c2a3c'), 'white', {renderer: 'canvas'});
  651. var option_3c4a8e7c9e8f5aebd9f23d5d3e7c2a3c = {
  652. "animation": true,
  653. "animationThreshold": 2000,
  654. "animationDuration": 1000,
  655. "animationEasing": "cubicOut",
  656. "animationDelay": 0,
  657. "animationDurationUpdate": 300,
  658. "animationEasingUpdate": "cubicOut",
  659. "animationDelayUpdate": 0,
  660. "aria": {
  661. "enabled": false
  662. },
  663. "color": [
  664. "#5470c6",
  665. "#91cc75",
  666. "#fac858",
  667. "#ee6666",
  668. "#73c0de",
  669. "#3ba272",
  670. "#fc8452",
  671. "#9a60b4",
  672. "#ea7ccc"
  673. ],
  674. "series": [
  675. {
  676. "type": "pie",
  677. "colorBy": "data",
  678. "legendHoverLink": true,
  679. "selectedMode": false,
  680. "selectedOffset": 10,
  681. "clockwise": true,
  682. "startAngle": 90,
  683. "minAngle": 0,
  684. "minShowLabelAngle": 0,
  685. "avoidLabelOverlap": true,
  686. "stillShowZeroSum": true,
  687. "percentPrecision": 2,
  688. "showEmptyCircle": true,
  689. "emptyCircleStyle": {
  690. "color": "lightgray",
  691. "borderColor": "#000",
  692. "borderWidth": 0,
  693. "borderType": "solid",
  694. "borderDashOffset": 0,
  695. "borderCap": "butt",
  696. "borderJoin": "bevel",
  697. "borderMiterLimit": 10,
  698. "opacity": 1
  699. },
  700. "data": [
  701. {
  702. "name": "其他",
  703. "value": 7
  704. },
  705. {
  706. "name": "多云",
  707. "value": 243
  708. },
  709. {
  710. "name":"晴",
  711. "value": 26
  712. },
  713. {
  714. "name": "阴",
  715. "value": 16
  716. },
  717. {
  718. "name": "雨",
  719. "value": 68
  720. },
  721. {
  722. "name":"雾",
  723. "value": 5
  724. }
  725. ],
  726. "radius": [
  727. "0%",
  728. "75%"
  729. ],
  730. "center": [
  731. "50%",
  732. "50%"
  733. ],
  734. "label": {
  735. "show": true,
  736. "margin": 8,
  737. "formatter": "{b}"
  738. },
  739. "labelLine": {
  740. "show": true,
  741. "showAbove": false,
  742. "length": 15,
  743. "length2": 15,
  744. "smooth": false,
  745. "minTurnAngle": 90,
  746. "maxSurfaceAngle": 90
  747. },
  748. "rippleEffect": {
  749. "show": true,
  750. "brushType": "stroke",
  751. "scale": 2.5,
  752. "period": 4
  753. }
  754. }
  755. ],
  756. "legend": [
  757. {
  758. "data": [
  759. "其他",
  760. "多云",
  761. "阴",
  762. "雨",
  763. "晴",
  764. "雾"
  765. ],
  766. "selected": {},
  767. "show": true,
  768. "padding": 5,
  769. "itemGap": 10,
  770. "itemWidth": 25,
  771. "itemHeight": 14,
  772. "backgroundColor": "transparent",
  773. "borderColor": "#ccc",
  774. "borderWidth": 1,
  775. "borderRadius": 0,
  776. "pageButtonItemGap": 5,
  777. "pageButtonPosition": "end",
  778. "pageFormatter": "{current}/{total}",
  779. "pageIconColor": "#2f4554",
  780. "pageIconInactiveColor": "#aaa",
  781. "pageIconSize": 15,
  782. "animationDurationUpdate": 800,
  783. "selector": false,
  784. "selectorPosition": "auto",
  785. "selectorItemGap": 7,
  786. "selectorButtonGap": 10
  787. }
  788. ],
  789. "tooltip": {
  790. "show": true,
  791. "trigger": "item",
  792. "triggerOn": "mousemove|click",
  793. "axisPointer": {
  794. "type": "line"
  795. },
  796. "showContent": true,
  797. "alwaysShowContent": false,
  798. "showDelay": 0,
  799. "hideDelay": 100,
  800. "enterable": false,
  801. "confine": false,
  802. "appendToBody": false,
  803. "transitionDuration": 0.4,
  804. "textStyle": {
  805. "fontSize": 14
  806. },
  807. "borderWidth": 0,
  808. "padding": 5,
  809. "order": "seriesAsc"
  810. },
  811. "title": [
  812. {
  813. "show": true,
  814. "text": "惠州各类天气天数占比",
  815. "target": "blank",
  816. "subtarget": "blank",
  817. "padding": 5,
  818. "itemGap": 10,
  819. "textAlign": "auto",
  820. "textVerticalAlign": "auto",
  821. "triggerEvent": false
  822. }
  823. ]
  824. };
  825. chart_3c4a8e7c9e8f5aebd9f23d5d3e7c2a3c.setOption(option_3c4a8e7c9e8f5aebd9f23d5d3e7c2a3c);
  826. </script>
  827. <br/> <div id="7e4f9b8a5c1225a9d9c8e7a8e8d7d6b2" class="chart-container" style="width:900px; height:500px; "></div>
  828. <script>
  829. var chart_7e4f9b8a5c1225a9d9c8e7a8e8d7d6b2= echarts.init(
  830. document.getElementById('7e4f9b8a5c1225a9d9c8e7a8e8d7d6b2'), 'white', {renderer: 'canvas'});
  831. var option_7e4f9b8a5c1225a9d9c8e7a8e8d7d6b2 = {
  832. "animation": true,
  833. "animationThreshold": 2000,
  834. "animationDuration": 1000,
  835. "animationEasing": "cubicOut",
  836. "animationDelay": 0,
  837. "animationDurationUpdate": 300,
  838. "animationEasingUpdate": "cubicOut",
  839. "animationDelayUpdate": 0,
  840. "aria": {
  841. "enabled": false
  842. },
  843. "color": [
  844. " #5470c6",
  845. "#91cc75",
  846. "#fac858",
  847. "#ee6666",
  848. "#73c0de",
  849. "#3ba272",
  850. "#fc8452",
  851. "#9a60b4",
  852. "#ea7ccc"
  853. ],
  854. "series": [
  855. {
  856. "type": "pie",
  857. "colorBy": "data",
  858. "legendHoverLink": true,
  859. "selectedMode": false,
  860. "selectedOffset": 10,
  861. "clockwise": true,
  862. "startAngle": 90,
  863. "minAngle": 0,
  864. "minShowLabelAngle": 0,
  865. "avoidLabelOverlap": true,
  866. "stillShowZeroSum": true,
  867. "percentPrecision": 2,
  868. "showEmptyCircle": true,
  869. "emptyCircleStyle": {
  870. "color": "lightgray",
  871. "borderColor": "#",
  872. "borderWidth": 0,
  873. "borderType": "solid",
  874. "borderDashOffset": 0,
  875. "borderCap": "butt",
  876. "borderJoin": "bevel",
  877. "borderMiterLimit": 10,
  878. "opacity": 1
  879. },
  880. "data": [
  881. {
  882. "name": "其他",
  883. "value": 6
  884. },
  885. {
  886. "name": "多云",
  887. "value": 252
  888. },
  889. {
  890. "name":"晴",
  891. "value": 39
  892. },
  893. {
  894. "name": "阴",
  895. "value": 10
  896. },
  897. {
  898. "name": "雨",
  899. "value": 58
  900. },
  901. ],
  902. "radius": [
  903. "0%",
  904. "75%"
  905. ],
  906. "center": [
  907. "50%",
  908. "50%"
  909. ],
  910. "label": {
  911. "show": true,
  912. "margin": 8,
  913. "formatter": "{b}"
  914. },
  915. "labelLine": {
  916. "show": true,
  917. "showAbove": false,
  918. "length": 15,
  919. "length2": 15,
  920. "smooth": false,
  921. "minTurnAngle": 90,
  922. "maxSurfaceAngle": 90
  923. },
  924. "rippleEffect": {
  925. "show": true,
  926. "brushType": "stroke",
  927. "scale": 2.5,
  928. "period": 4
  929. }
  930. }
  931. ],
  932. "legend": [
  933. {
  934. "data": [
  935. "其他",
  936. "多云",
  937. "阴",
  938. "雨",
  939. "晴"
  940. ],
  941. "selected": {},
  942. "show": true,
  943. "padding": 5,
  944. "itemGap": 10,
  945. "itemWidth": 25,
  946. "itemHeight": 14,
  947. "backgroundColor": "transparent",
  948. "borderColor": "#ccc",
  949. "borderWidth": 1,
  950. "borderRadius": 0,
  951. "pageButtonItemGap": 5,
  952. "pageButtonPosition": "end",
  953. "pageFormatter": "{current}/{total}",
  954. "pageIconColor": "#2f4554",
  955. "pageIconInactiveColor": "#aaa",
  956. "pageIconSize": 15,
  957. "animationDurationUpdate": 800,
  958. "selector": false,
  959. "selectorPosition": "auto",
  960. "selectorItemGap": 7,
  961. "selectorButtonGap": 10
  962. }
  963. ],
  964. "tooltip": {
  965. "show": true,
  966. "trigger": "item",
  967. "triggerOn": "mousemove|click",
  968. "axisPointer": {
  969. "type": "line"
  970. },
  971. "showContent": true,
  972. "alwaysShowContent": false,
  973. "showDelay": 0,
  974. "hideDelay": 100,
  975. "enterable": false,
  976. "confine": false,
  977. "appendToBody": false,
  978. "transitionDuration": 0.4,
  979. "textStyle": {
  980. "fontSize": 14
  981. },
  982. "borderWidth": 0,
  983. "padding": 5,
  984. "order": "seriesAsc"
  985. },
  986. "title": [
  987. {
  988. "show": true,
  989. "text": "深圳各类天气天数占比",
  990. "target": "blank",
  991. "subtarget": "blank",
  992. "padding": 5,
  993. "itemGap": 10,
  994. "textAlign": "auto",
  995. "textVerticalAlign": "auto",
  996. "triggerEvent": false
  997. }
  998. ]
  999. };
  1000. chart_7e4f9b8a5c1225a9d9c8e7a8e8d7d6b2.setOption(option_7e4f9b8a5c1225a9d9c8e7a8e8d7d6b2);
  1001. </script>
  1002. <br/> <div id="05381e07884b4ca4a31f555d2e24d39e" class="chart-container" style="width:980px; height:600px; "></div>
  1003. <script>
  1004. var chart_05381e07884b4ca4a31f555d2e24d39e = echarts.init(
  1005. document.getElementById('05381e07884b4ca4a31f555d2e24d39e'), 'white', {renderer: 'canvas'});
  1006. var option_05381e07884b4ca4a31f555d2e24d39e = {
  1007. "baseOption": {
  1008. "series": [
  1009. {
  1010. "type": "line",
  1011. "name": "广州",
  1012. "connectNulls": false,
  1013. "xAxisIndex": 0,
  1014. "symbolSize": 5,
  1015. "showSymbol": true,
  1016. "smooth": true,
  1017. "clip": true,
  1018. "step": false,
  1019. "data": [
  1020. [
  1021. 1,
  1022. 15.709677419354838
  1023. ],
  1024. [
  1025. 2,
  1026. 12.232142857142858
  1027. ],
  1028. [
  1029. 3,
  1030. 21.177419354838708
  1031. ],
  1032. [
  1033. 4,
  1034. 22.533333333333335
  1035. ],
  1036. [
  1037. 5,
  1038. 24.370967741935484
  1039. ],
  1040. [
  1041. 6,
  1042. 28.0
  1043. ],
  1044. [
  1045. 7,
  1046. 30.35483870967742
  1047. ],
  1048. [
  1049. 8,
  1050. 29.0
  1051. ],
  1052. [
  1053. 9,
  1054. 28.866666666666667
  1055. ],
  1056. [
  1057. 10,
  1058. 24.903225806451612
  1059. ],
  1060. [
  1061. 11,
  1062. 21.783333333333335
  1063. ],
  1064. [
  1065. 12,
  1066. 13.403225806451612
  1067. ]
  1068. ],
  1069. "hoverAnimation": true,
  1070. "label": {
  1071. "show": false,
  1072. "margin": 8
  1073. },
  1074. "logBase": 10,
  1075. "seriesLayoutBy": "column",
  1076. "lineStyle": {
  1077. "normal": {
  1078. "width": 4,
  1079. "shadowColor": "blue",
  1080. "shadowBlur": 10,
  1081. "shadowOffsetY": 10,
  1082. "shadowOffsetX": 10
  1083. }
  1084. },
  1085. "areaStyle": {
  1086. "opacity": 0
  1087. },
  1088. "zlevel": 0,
  1089. "z": 0,
  1090. "rippleEffect": {
  1091. "show": true,
  1092. "brushType": "stroke",
  1093. "scale": 2.5,
  1094. "period": 4
  1095. }
  1096. },
  1097. {
  1098. "type": "line",
  1099. "name": "河源",
  1100. "connectNulls": false,
  1101. "xAxisIndex": 0,
  1102. "symbolSize": 5,
  1103. "showSymbol": true,
  1104. "smooth": true,
  1105. "clip": true,
  1106. "step": false,
  1107. "data": [
  1108. [
  1109. 1,
  1110. 15.080645
  1111. ],
  1112. [
  1113. 2,
  1114. 11.607143
  1115. ],
  1116. [
  1117. 3,
  1118. 21.096774
  1119. ],
  1120. [
  1121. 4,
  1122. 22.300000
  1123. ],
  1124. [
  1125. 5,
  1126. 23.887097
  1127. ],
  1128. [
  1129. 6,
  1130. 27.550000
  1131. ],
  1132. [
  1133. 7,
  1134. 30.419355
  1135. ],
  1136. [
  1137. 8,
  1138. 29.677419
  1139. ],
  1140. [
  1141. 9,
  1142. 29.216667
  1143. ],
  1144. [
  1145. 10,
  1146. 24.983871
  1147. ],
  1148. [
  1149. 11,
  1150. 21.933333
  1151. ],
  1152. [
  1153. 12,
  1154. 12.096774
  1155. ]
  1156. ],
  1157. "hoverAnimation": true,
  1158. "label": {
  1159. "show": false,
  1160. "margin": 8
  1161. },
  1162. "logBase": 10,
  1163. "seriesLayoutBy": "column",
  1164. "lineStyle": {
  1165. "normal": {
  1166. "width": 4,
  1167. "shadowColor": "green",
  1168. "shadowBlur": 10,
  1169. "shadowOffsetY": 10,
  1170. "shadowOffsetX": 10
  1171. }
  1172. },
  1173. "areaStyle": {
  1174. "opacity": 0
  1175. },
  1176. "zlevel": 0,
  1177. "z": 0,
  1178. "rippleEffect": {
  1179. "show": true,
  1180. "brushType": "stroke",
  1181. "scale": 2.5,
  1182. "period": 4
  1183. }
  1184. },
  1185. {
  1186. "type": "line",
  1187. "name": "惠州",
  1188. "connectNulls": false,
  1189. "xAxisIndex": 0,
  1190. "symbolSize": 5,
  1191. "showSymbol": true,
  1192. "smooth": true,
  1193. "clip": true,
  1194. "step": false,
  1195. "data": [
  1196. [
  1197. 1,
  1198. 17.290323
  1199. ],
  1200. [
  1201. 2,
  1202. 14.035714
  1203. ],
  1204. [
  1205. 3,
  1206. 21.677419
  1207. ],
  1208. [
  1209. 4,
  1210. 22.750000
  1211. ],
  1212. [
  1213. 5,
  1214. 24.774194
  1215. ],
  1216. [
  1217. 6,
  1218. 28.050000
  1219. ],
  1220. [
  1221. 7,
  1222. 29.306452
  1223. ],
  1224. [
  1225. 8,
  1226. 28.177419
  1227. ],
  1228. [
  1229. 9,
  1230. 28.416667
  1231. ],
  1232. [
  1233. 10,
  1234. 24.870968
  1235. ],
  1236. [
  1237. 11,
  1238. 22.783333
  1239. ],
  1240. [
  1241. 12,
  1242. 14.967742
  1243. ]
  1244. ],
  1245. "hoverAnimation": true,
  1246. "label": {
  1247. "show": false,
  1248. "margin": 8
  1249. },
  1250. "logBase": 10,
  1251. "seriesLayoutBy": "column",
  1252. "lineStyle": {
  1253. "normal": {
  1254. "width": 4,
  1255. "shadowColor": "yellow",
  1256. "shadowBlur": 10,
  1257. "shadowOffsetY": 10,
  1258. "shadowOffsetX": 10
  1259. }
  1260. },
  1261. "areaStyle": {
  1262. "opacity": 0
  1263. },
  1264. "zlevel": 0,
  1265. "z": 0,
  1266. "rippleEffect": {
  1267. "show": true,
  1268. "brushType": "stroke",
  1269. "scale": 2.5,
  1270. "period": 4
  1271. }
  1272. },
  1273. {
  1274. "type": "line",
  1275. "name": "深圳",
  1276. "connectNulls": false,
  1277. "xAxisIndex": 0,
  1278. "symbolSize": 5,
  1279. "showSymbol": true,
  1280. "smooth": true,
  1281. "clip": true,
  1282. "step": false,
  1283. "data": [
  1284. [
  1285. 1,
  1286. 17.580645
  1287. ],
  1288. [
  1289. 2,
  1290. 14.232143
  1291. ],
  1292. [
  1293. 3,
  1294. 21.596774
  1295. ],
  1296. [
  1297. 4,
  1298. 23.466667
  1299. ],
  1300. [
  1301. 5,
  1302. 25.064516
  1303. ],
  1304. [
  1305. 6,
  1306. 28.166667
  1307. ],
  1308. [
  1309. 7,
  1310. 30.016129
  1311. ],
  1312. [
  1313. 8,
  1314. 29.145161
  1315. ],
  1316. [
  1317. 9,
  1318. 29.400000
  1319. ],
  1320. [
  1321. 10,
  1322. 25.725806
  1323. ],
  1324. [
  1325. 11,
  1326. 22.966667
  1327. ],
  1328. [
  1329. 12,
  1330. 14.870968
  1331. ]
  1332. ],
  1333. "hoverAnimation": true,
  1334. "label": {
  1335. "show": false,
  1336. "margin": 8
  1337. },
  1338. "logBase": 10,
  1339. "seriesLayoutBy": "column",
  1340. "lineStyle": {
  1341. "normal": {
  1342. "width": 4,
  1343. "shadowColor": "red",
  1344. "shadowBlur": 10,
  1345. "shadowOffsetY": 10,
  1346. "shadowOffsetX": 10
  1347. }
  1348. },
  1349. "areaStyle": {
  1350. "opacity": 0
  1351. },
  1352. "zlevel": 0,
  1353. "z": 0,
  1354. "rippleEffect": {
  1355. "show": true,
  1356. "brushType": "stroke",
  1357. "scale": 2.5,
  1358. "period": 4
  1359. }
  1360. }
  1361. ],
  1362. "timeline": {
  1363. "axisType": "category",
  1364. "currentIndex": 0,
  1365. "orient": "horizontal",
  1366. "autoPlay": true,
  1367. "controlPosition": "left",
  1368. "loop": true,
  1369. "rewind": false,
  1370. "show": true,
  1371. "inverse": false,
  1372. "playInterval": 1000,
  1373. "left": "0",
  1374. "right": "0",
  1375. "bottom": "-5px",
  1376. "progress": {},
  1377. "data": [
  1378. "1月",
  1379. "2月",
  1380. "3月",
  1381. "4月",
  1382. "5月",
  1383. "6月",
  1384. "7月",
  1385. "8月",
  1386. "9月",
  1387. "10月",
  1388. "11月",
  1389. "12月"
  1390. ]
  1391. },
  1392. "xAxis": [
  1393. {
  1394. "type": "category",
  1395. "show": true,
  1396. "scale": false,
  1397. "nameLocation": "end",
  1398. "nameGap": 15,
  1399. "gridIndex": 0,
  1400. "axisLine": {
  1401. "show": true,
  1402. "onZero": true,
  1403. "onZeroAxisIndex": 0,
  1404. "lineStyle": {
  1405. "show": true,
  1406. "width": 2,
  1407. "opacity": 1,
  1408. "curveness": 0,
  1409. "type": "solid",
  1410. "color": "#DB7093"
  1411. }
  1412. },
  1413. "axisLabel": {
  1414. "show": true,
  1415. "color": "red",
  1416. "margin": 8,
  1417. "fontSize": 14
  1418. },
  1419. "inverse": false,
  1420. "offset": 0,
  1421. "splitNumber": 5,
  1422. "boundaryGap": false,
  1423. "minInterval": 0,
  1424. "splitLine": {
  1425. "show": true,
  1426. "lineStyle": {
  1427. "show": true,
  1428. "width": 1,
  1429. "opacity": 1,
  1430. "curveness": 0,
  1431. "type": "solid"
  1432. }
  1433. },
  1434. "data": [
  1435. 1,
  1436. 2,
  1437. 3,
  1438. 4,
  1439. 5,
  1440. 6,
  1441. 7,
  1442. 8,
  1443. 9,
  1444. 10,
  1445. 11,
  1446. 12
  1447. ]
  1448. }
  1449. ],
  1450. "yAxis": [
  1451. {
  1452. "name": "平均温度",
  1453. "show": true,
  1454. "scale": true,
  1455. "nameLocation": "end",
  1456. "nameGap": 15,
  1457. "nameTextStyle": {
  1458. "color": "blue",
  1459. "fontWeight": "bold",
  1460. "fontSize": 16
  1461. },
  1462. "gridIndex": 0,
  1463. "axisLine": {
  1464. "show": true,
  1465. "onZero": true,
  1466. "onZeroAxisIndex": 0,
  1467. "lineStyle": {
  1468. "show": true,
  1469. "width": 2,
  1470. "opacity": 1,
  1471. "curveness": 0,
  1472. "type": "solid",
  1473. "color": "blue"
  1474. }
  1475. },
  1476. "axisLabel": {
  1477. "show": true,
  1478. "color": "yellow",
  1479. "margin": 8,
  1480. "fontSize": 13
  1481. },
  1482. "inverse": false,
  1483. "offset": 0,
  1484. "splitNumber": 5,
  1485. "min": 3,
  1486. "max": 25,
  1487. "minInterval": 0,
  1488. "splitLine": {
  1489. "show": true,
  1490. "lineStyle": {
  1491. "show": true,
  1492. "width": 1,
  1493. "opacity": 1,
  1494. "curveness": 0,
  1495. "type": "dashed"
  1496. }
  1497. }
  1498. }
  1499. ],
  1500. "legend": [
  1501. {
  1502. "data": [
  1503. "广州",
  1504. "河源",
  1505. "惠州",
  1506. "深圳",
  1507. ],
  1508. "selected": {},
  1509. "show": true,
  1510. "right": "1%",
  1511. "top": "2%",
  1512. "orient": "vertical",
  1513. "padding": 5,
  1514. "itemGap": 10,
  1515. "itemWidth": 25,
  1516. "itemHeight": 14,
  1517. "icon": "roundRect",
  1518. "backgroundColor": "transparent",
  1519. "borderColor": "#ccc",
  1520. "borderWidth": 1,
  1521. "borderRadius": 0,
  1522. "pageButtonItemGap": 5,
  1523. "pageButtonPosition": "end",
  1524. "pageFormatter": "{current}/{total}",
  1525. "pageIconColor": "#2f4554",
  1526. "pageIconInactiveColor": "#aaa",
  1527. "pageIconSize": 15,
  1528. "animationDurationUpdate": 800,
  1529. "selector": false,
  1530. "selectorPosition": "auto",
  1531. "selectorItemGap": 7,
  1532. "selectorButtonGap": 10
  1533. }
  1534. ]
  1535. },
  1536. "options": [
  1537. {
  1538. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  1539. "series": [
  1540. {
  1541. "type": "line",
  1542. "name": "广州",
  1543. "connectNulls": false,
  1544. "xAxisIndex": 0,
  1545. "symbolSize": 5,
  1546. "showSymbol": true,
  1547. "smooth": true,
  1548. "clip": true,
  1549. "step": false,
  1550. "data": [
  1551. [
  1552. 1,
  1553. 15.709677
  1554. ]
  1555. ],
  1556. "hoverAnimation": true,
  1557. "label": {
  1558. "show": false,
  1559. "margin": 8
  1560. },
  1561. "logBase": 10,
  1562. "seriesLayoutBy": "column",
  1563. "lineStyle": {
  1564. "normal": {
  1565. "width": 4,
  1566. "shadowColor": "blue",
  1567. "shadowBlur": 10,
  1568. "shadowOffsetY": 10,
  1569. "shadowOffsetX": 10
  1570. }
  1571. },
  1572. "areaStyle": {
  1573. "opacity": 0
  1574. },
  1575. "zlevel": 0,
  1576. "z": 0,
  1577. "rippleEffect": {
  1578. "show": true,
  1579. "brushType": "stroke",
  1580. "scale": 2.5,
  1581. "period": 4
  1582. }
  1583. },
  1584. {
  1585. "type": "line",
  1586. "name": "河源",
  1587. "connectNulls": false,
  1588. "xAxisIndex": 0,
  1589. "symbolSize": 5,
  1590. "showSymbol": true,
  1591. "smooth": true,
  1592. "clip": true,
  1593. "step": false,
  1594. "data": [
  1595. [
  1596. 1,
  1597. 15.080645
  1598. ]
  1599. ],
  1600. "hoverAnimation": true,
  1601. "label": {
  1602. "show": false,
  1603. "margin": 8
  1604. },
  1605. "logBase": 10,
  1606. "seriesLayoutBy": "column",
  1607. "lineStyle": {
  1608. "normal": {
  1609. "width": 4,
  1610. "shadowColor": "green",
  1611. "shadowBlur": 10,
  1612. "shadowOffsetY": 10,
  1613. "shadowOffsetX": 10
  1614. }
  1615. },
  1616. "areaStyle": {
  1617. "opacity": 0
  1618. },
  1619. "zlevel": 0,
  1620. "z": 0,
  1621. "rippleEffect": {
  1622. "show": true,
  1623. "brushType": "stroke",
  1624. "scale": 2.5,
  1625. "period": 4
  1626. }
  1627. },
  1628. {
  1629. "type": "line",
  1630. "name": "惠州",
  1631. "connectNulls": false,
  1632. "xAxisIndex": 0,
  1633. "symbolSize": 5,
  1634. "showSymbol": true,
  1635. "smooth": true,
  1636. "clip": true,
  1637. "step": false,
  1638. "data": [
  1639. [
  1640. 1,
  1641. 17.290323
  1642. ]
  1643. ],
  1644. "hoverAnimation": true,
  1645. "label": {
  1646. "show": false,
  1647. "margin": 8
  1648. },
  1649. "logBase": 10,
  1650. "seriesLayoutBy": "column",
  1651. "lineStyle": {
  1652. "normal": {
  1653. "width": 4,
  1654. "shadowColor": "yellow",
  1655. "shadowBlur": 10,
  1656. "shadowOffsetY": 10,
  1657. "shadowOffsetX": 10
  1658. }
  1659. },
  1660. "areaStyle": {
  1661. "opacity": 0
  1662. },
  1663. "zlevel": 0,
  1664. "z": 0,
  1665. "rippleEffect": {
  1666. "show": true,
  1667. "brushType": "stroke",
  1668. "scale": 2.5,
  1669. "period": 4
  1670. }
  1671. },
  1672. {
  1673. "type": "line",
  1674. "name": "深圳",
  1675. "connectNulls": false,
  1676. "xAxisIndex": 0,
  1677. "symbolSize": 5,
  1678. "showSymbol": true,
  1679. "smooth": true,
  1680. "clip": true,
  1681. "step": false,
  1682. "data": [
  1683. [
  1684. 1,
  1685. 17.580645
  1686. ]
  1687. ],
  1688. "hoverAnimation": true,
  1689. "label": {
  1690. "show": false,
  1691. "margin": 8
  1692. },
  1693. "logBase": 10,
  1694. "seriesLayoutBy": "column",
  1695. "lineStyle": {
  1696. "normal": {
  1697. "width": 4,
  1698. "shadowColor": "red",
  1699. "shadowBlur": 10,
  1700. "shadowOffsetY": 10,
  1701. "shadowOffsetX": 10
  1702. }
  1703. },
  1704. "areaStyle": {
  1705. "opacity": 0
  1706. },
  1707. "zlevel": 0,
  1708. "z": 0,
  1709. "rippleEffect": {
  1710. "show": true,
  1711. "brushType": "stroke",
  1712. "scale": 2.5,
  1713. "period": 4
  1714. }
  1715. },
  1716. ],
  1717. "xAxis": [
  1718. {
  1719. "type": "category",
  1720. "show": true,
  1721. "scale": false,
  1722. "nameLocation": "end",
  1723. "nameGap": 15,
  1724. "gridIndex": 0,
  1725. "axisLine": {
  1726. "show": true,
  1727. "onZero": true,
  1728. "onZeroAxisIndex": 0,
  1729. "lineStyle": {
  1730. "show": true,
  1731. "width": 2,
  1732. "opacity": 1,
  1733. "curveness": 0,
  1734. "type": "solid",
  1735. "color": "#DB7093"
  1736. }
  1737. },
  1738. "axisLabel": {
  1739. "show": true,
  1740. "color": "red",
  1741. "margin": 8,
  1742. "fontSize": 14
  1743. },
  1744. "inverse": false,
  1745. "offset": 0,
  1746. "splitNumber": 5,
  1747. "boundaryGap": false,
  1748. "minInterval": 0,
  1749. "splitLine": {
  1750. "show": true,
  1751. "lineStyle": {
  1752. "show": true,
  1753. "width": 1,
  1754. "opacity": 1,
  1755. "curveness": 0,
  1756. "type": "solid"
  1757. }
  1758. },
  1759. "data": [
  1760. 1,
  1761. 2,
  1762. 3,
  1763. 4,
  1764. 5,
  1765. 6,
  1766. 7,
  1767. 8,
  1768. 9,
  1769. 10,
  1770. 11,
  1771. 12
  1772. ]
  1773. }
  1774. ],
  1775. "yAxis": [
  1776. {
  1777. "name": "平均温度",
  1778. "show": true,
  1779. "scale": true,
  1780. "nameLocation": "end",
  1781. "nameGap": 15,
  1782. "nameTextStyle": {
  1783. "color": "blue",
  1784. "fontWeight": "bold",
  1785. "fontSize": 16
  1786. },
  1787. "gridIndex": 0,
  1788. "axisLine": {
  1789. "show": true,
  1790. "onZero": true,
  1791. "onZeroAxisIndex": 0,
  1792. "lineStyle": {
  1793. "show": true,
  1794. "width": 2,
  1795. "opacity": 1,
  1796. "curveness": 0,
  1797. "type": "solid",
  1798. "color": "blue"
  1799. }
  1800. },
  1801. "axisLabel": {
  1802. "show": true,
  1803. "color": "blue",
  1804. "margin": 8,
  1805. "fontSize": 13
  1806. },
  1807. "inverse": false,
  1808. "offset": 0,
  1809. "splitNumber": 5,
  1810. "min": 5,
  1811. "max": 27,
  1812. "minInterval": 0,
  1813. "splitLine": {
  1814. "show": true,
  1815. "lineStyle": {
  1816. "show": true,
  1817. "width": 1,
  1818. "opacity": 1,
  1819. "curveness": 0,
  1820. "type": "dashed"
  1821. }
  1822. }
  1823. }
  1824. ],
  1825. "title": [
  1826. {
  1827. "show": true,
  1828. "text": "广州河源惠州深圳2022年每月平均温度变化趋势",
  1829. "target": "blank",
  1830. "subtarget": "blank",
  1831. "left": "center",
  1832. "top": "2%",
  1833. "padding": 5,
  1834. "itemGap": 10,
  1835. "textAlign": "auto",
  1836. "textVerticalAlign": "auto",
  1837. "triggerEvent": false,
  1838. "textStyle": {
  1839. "color": "red",
  1840. "fontSize": 20
  1841. }
  1842. }
  1843. ],
  1844. "tooltip": {
  1845. "show": true,
  1846. "trigger": "axis",
  1847. "triggerOn": "mousemove|click",
  1848. "axisPointer": {
  1849. "type": "cross"
  1850. },
  1851. "showContent": true,
  1852. "alwaysShowContent": false,
  1853. "showDelay": 0,
  1854. "hideDelay": 100,
  1855. "enterable": false,
  1856. "confine": false,
  1857. "appendToBody": false,
  1858. "transitionDuration": 0.4,
  1859. "textStyle": {
  1860. "color": "#000"
  1861. },
  1862. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  1863. "borderColor": "#ccc",
  1864. "borderWidth": 1,
  1865. "padding": 5,
  1866. "order": "seriesAsc"
  1867. },
  1868. "color": [
  1869. "#5470c6",
  1870. "#91cc75",
  1871. "#fac858",
  1872. "#ee6666",
  1873. "#73c0de",
  1874. "#3ba272",
  1875. "#fc8452",
  1876. "#9a60b4",
  1877. "#ea7ccc"
  1878. ]
  1879. },
  1880. {
  1881. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  1882. "series": [
  1883. {
  1884. "type": "line",
  1885. "name": "广州",
  1886. "connectNulls": false,
  1887. "xAxisIndex": 0,
  1888. "symbolSize": 5,
  1889. "showSymbol": true,
  1890. "smooth": true,
  1891. "clip": true,
  1892. "step": false,
  1893. "data": [
  1894. [
  1895. 1,
  1896. 15.709677
  1897. ],
  1898. [
  1899. 2,
  1900. 12.232143
  1901. ]
  1902. ],
  1903. "hoverAnimation": true,
  1904. "label": {
  1905. "show": false,
  1906. "margin": 8
  1907. },
  1908. "logBase": 10,
  1909. "seriesLayoutBy": "column",
  1910. "lineStyle": {
  1911. "normal": {
  1912. "width": 4,
  1913. "shadowColor": "#696969",
  1914. "shadowBlur": 10,
  1915. "shadowOffsetY": 10,
  1916. "shadowOffsetX": 10
  1917. }
  1918. },
  1919. "areaStyle": {
  1920. "opacity": 0
  1921. },
  1922. "zlevel": 0,
  1923. "z": 0,
  1924. "rippleEffect": {
  1925. "show": true,
  1926. "brushType": "stroke",
  1927. "scale": 2.5,
  1928. "period": 4
  1929. }
  1930. },
  1931. {
  1932. "type": "line",
  1933. "name": "河源",
  1934. "connectNulls": false,
  1935. "xAxisIndex": 0,
  1936. "symbolSize": 5,
  1937. "showSymbol": true,
  1938. "smooth": true,
  1939. "clip": true,
  1940. "step": false,
  1941. "data": [
  1942. [
  1943. 1,
  1944. 15.080645
  1945. ],
  1946. [
  1947. 2,
  1948. 11.607143
  1949. ]
  1950. ],
  1951. "hoverAnimation": true,
  1952. "label": {
  1953. "show": false,
  1954. "margin": 8
  1955. },
  1956. "logBase": 10,
  1957. "seriesLayoutBy": "column",
  1958. "lineStyle": {
  1959. "normal": {
  1960. "width": 4,
  1961. "shadowColor": "#696969",
  1962. "shadowBlur": 10,
  1963. "shadowOffsetY": 10,
  1964. "shadowOffsetX": 10
  1965. }
  1966. },
  1967. "areaStyle": {
  1968. "opacity": 0
  1969. },
  1970. "zlevel": 0,
  1971. "z": 0,
  1972. "rippleEffect": {
  1973. "show": true,
  1974. "brushType": "stroke",
  1975. "scale": 2.5,
  1976. "period": 4
  1977. }
  1978. },
  1979. {
  1980. "type": "line",
  1981. "name": "惠州",
  1982. "connectNulls": false,
  1983. "xAxisIndex": 0,
  1984. "symbolSize": 5,
  1985. "showSymbol": true,
  1986. "smooth": true,
  1987. "clip": true,
  1988. "step": false,
  1989. "data": [
  1990. [
  1991. 1,
  1992. 17.290323
  1993. ],
  1994. [
  1995. 2,
  1996. 14.035714
  1997. ]
  1998. ],
  1999. "hoverAnimation": true,
  2000. "label": {
  2001. "show": false,
  2002. "margin": 8
  2003. },
  2004. "logBase": 10,
  2005. "seriesLayoutBy": "column",
  2006. "lineStyle": {
  2007. "normal": {
  2008. "width": 4,
  2009. "shadowColor": "yellow",
  2010. "shadowBlur": 10,
  2011. "shadowOffsetY": 10,
  2012. "shadowOffsetX": 10
  2013. }
  2014. },
  2015. "areaStyle": {
  2016. "opacity": 0
  2017. },
  2018. "zlevel": 0,
  2019. "z": 0,
  2020. "rippleEffect": {
  2021. "show": true,
  2022. "brushType": "stroke",
  2023. "scale": 2.5,
  2024. "period": 4
  2025. }
  2026. },
  2027. {
  2028. "type": "line",
  2029. "name": "深圳",
  2030. "connectNulls": false,
  2031. "xAxisIndex": 0,
  2032. "symbolSize": 5,
  2033. "showSymbol": true,
  2034. "smooth": true,
  2035. "clip": true,
  2036. "step": false,
  2037. "data": [
  2038. [
  2039. 1,
  2040. 17.580645
  2041. ],
  2042. [
  2043. 2,
  2044. 14.232143
  2045. ]
  2046. ],
  2047. "hoverAnimation": true,
  2048. "label": {
  2049. "show": false,
  2050. "margin": 8
  2051. },
  2052. "logBase": 10,
  2053. "seriesLayoutBy": "column",
  2054. "lineStyle": {
  2055. "normal": {
  2056. "width": 4,
  2057. "shadowColor": "red",
  2058. "shadowBlur": 10,
  2059. "shadowOffsetY": 10,
  2060. "shadowOffsetX": 10
  2061. }
  2062. },
  2063. "areaStyle": {
  2064. "opacity": 0
  2065. },
  2066. "zlevel": 0,
  2067. "z": 0,
  2068. "rippleEffect": {
  2069. "show": true,
  2070. "brushType": "stroke",
  2071. "scale": 2.5,
  2072. "period": 4
  2073. }
  2074. }
  2075. ],
  2076. "xAxis": [
  2077. {
  2078. "type": "category",
  2079. "show": true,
  2080. "scale": false,
  2081. "nameLocation": "end",
  2082. "nameGap": 15,
  2083. "gridIndex": 0,
  2084. "axisLine": {
  2085. "show": true,
  2086. "onZero": true,
  2087. "onZeroAxisIndex": 0,
  2088. "lineStyle": {
  2089. "show": true,
  2090. "width": 2,
  2091. "opacity": 1,
  2092. "curveness": 0,
  2093. "type": "solid",
  2094. "color": "#DB7093"
  2095. }
  2096. },
  2097. "axisLabel": {
  2098. "show": true,
  2099. "color": "red",
  2100. "margin": 8,
  2101. "fontSize": 14
  2102. },
  2103. "inverse": false,
  2104. "offset": 0,
  2105. "splitNumber": 5,
  2106. "boundaryGap": false,
  2107. "minInterval": 0,
  2108. "splitLine": {
  2109. "show": true,
  2110. "lineStyle": {
  2111. "show": true,
  2112. "width": 1,
  2113. "opacity": 1,
  2114. "curveness": 0,
  2115. "type": "solid"
  2116. }
  2117. },
  2118. "data": [
  2119. 1,
  2120. 2,
  2121. 3,
  2122. 4,
  2123. 5,
  2124. 6,
  2125. 7,
  2126. 8,
  2127. 9,
  2128. 10,
  2129. 11,
  2130. 12
  2131. ]
  2132. }
  2133. ],
  2134. "yAxis": [
  2135. {
  2136. "name": "平均温度",
  2137. "show": true,
  2138. "scale": true,
  2139. "nameLocation": "end",
  2140. "nameGap": 15,
  2141. "nameTextStyle": {
  2142. "color": "#5470c6",
  2143. "fontWeight": "bold",
  2144. "fontSize": 16
  2145. },
  2146. "gridIndex": 0,
  2147. "axisLine": {
  2148. "show": true,
  2149. "onZero": true,
  2150. "onZeroAxisIndex": 0,
  2151. "lineStyle": {
  2152. "show": true,
  2153. "width": 2,
  2154. "opacity": 1,
  2155. "curveness": 0,
  2156. "type": "solid",
  2157. "color": "#5470c6"
  2158. }
  2159. },
  2160. "axisLabel": {
  2161. "show": true,
  2162. "color": "#5470c6",
  2163. "margin": 8,
  2164. "fontSize": 13
  2165. },
  2166. "inverse": false,
  2167. "offset": 0,
  2168. "splitNumber": 5,
  2169. "min": 2,
  2170. "max": 24,
  2171. "minInterval": 0,
  2172. "splitLine": {
  2173. "show": true,
  2174. "lineStyle": {
  2175. "show": true,
  2176. "width": 1,
  2177. "opacity": 1,
  2178. "curveness": 0,
  2179. "type": "dashed"
  2180. }
  2181. }
  2182. }
  2183. ],
  2184. "title": [
  2185. {
  2186. "show": true,
  2187. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  2188. "target": "blank",
  2189. "subtarget": "blank",
  2190. "left": "center",
  2191. "top": "2%",
  2192. "padding": 5,
  2193. "itemGap": 10,
  2194. "textAlign": "auto",
  2195. "textVerticalAlign": "auto",
  2196. "triggerEvent": false,
  2197. "textStyle": {
  2198. "color": "#DC143C",
  2199. "fontSize": 20
  2200. }
  2201. }
  2202. ],
  2203. "tooltip": {
  2204. "show": true,
  2205. "trigger": "axis",
  2206. "triggerOn": "mousemove|click",
  2207. "axisPointer": {
  2208. "type": "cross"
  2209. },
  2210. "showContent": true,
  2211. "alwaysShowContent": false,
  2212. "showDelay": 0,
  2213. "hideDelay": 100,
  2214. "enterable": false,
  2215. "confine": false,
  2216. "appendToBody": false,
  2217. "transitionDuration": 0.4,
  2218. "textStyle": {
  2219. "color": "#000"
  2220. },
  2221. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  2222. "borderColor": "#ccc",
  2223. "borderWidth": 1,
  2224. "padding": 5,
  2225. "order": "seriesAsc"
  2226. },
  2227. "color": [
  2228. "#5470c6",
  2229. "#91cc75",
  2230. "#fac858",
  2231. "#ee6666",
  2232. "#73c0de",
  2233. "#3ba272",
  2234. "#fc8452",
  2235. "#9a60b4",
  2236. "#ea7ccc"
  2237. ]
  2238. },
  2239. {
  2240. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#blue'}, {offset: 1, color: '#yellow'},{offset:2,color:'#red'},{offset:3,color:'#green'}], false),
  2241. "series": [
  2242. {
  2243. "type": "line",
  2244. "name": "广州",
  2245. "connectNulls": false,
  2246. "xAxisIndex": 0,
  2247. "symbolSize": 5,
  2248. "showSymbol": true,
  2249. "smooth": true,
  2250. "clip": true,
  2251. "step": false,
  2252. "data": [
  2253. [
  2254. 1,
  2255. 15.709677
  2256. ],
  2257. [
  2258. 2,
  2259. 12.232143
  2260. ],
  2261. [
  2262. 3,
  2263. 21.177419
  2264. ]
  2265. ],
  2266. "hoverAnimation": true,
  2267. "label": {
  2268. "show": false,
  2269. "margin": 8
  2270. },
  2271. "logBase": 10,
  2272. "seriesLayoutBy": "column",
  2273. "lineStyle": {
  2274. "normal": {
  2275. "width": 4,
  2276. "shadowColor": "#696969",
  2277. "shadowBlur": 10,
  2278. "shadowOffsetY": 10,
  2279. "shadowOffsetX": 10
  2280. }
  2281. },
  2282. "areaStyle": {
  2283. "opacity": 0
  2284. },
  2285. "zlevel": 0,
  2286. "z": 0,
  2287. "rippleEffect": {
  2288. "show": true,
  2289. "brushType": "stroke",
  2290. "scale": 2.5,
  2291. "period": 4
  2292. }
  2293. },
  2294. {
  2295. "type": "line",
  2296. "name": "河源",
  2297. "connectNulls": false,
  2298. "xAxisIndex": 0,
  2299. "symbolSize": 5,
  2300. "showSymbol": true,
  2301. "smooth": true,
  2302. "clip": true,
  2303. "step": false,
  2304. "data": [
  2305. [
  2306. 1,
  2307. 15.080645
  2308. ],
  2309. [
  2310. 2,
  2311. 11.607143
  2312. ],
  2313. [
  2314. 3,
  2315. 21.096774
  2316. ]
  2317. ],
  2318. "hoverAnimation": true,
  2319. "label": {
  2320. "show": false,
  2321. "margin": 8
  2322. },
  2323. "logBase": 10,
  2324. "seriesLayoutBy": "column",
  2325. "lineStyle": {
  2326. "normal": {
  2327. "width": 4,
  2328. "shadowColor": "#696969",
  2329. "shadowBlur": 10,
  2330. "shadowOffsetY": 10,
  2331. "shadowOffsetX": 10
  2332. }
  2333. },
  2334. "areaStyle": {
  2335. "opacity": 0
  2336. },
  2337. "zlevel": 0,
  2338. "z": 0,
  2339. "rippleEffect": {
  2340. "show": true,
  2341. "brushType": "stroke",
  2342. "scale": 2.5,
  2343. "period": 4
  2344. }
  2345. },
  2346. {
  2347. "type": "line",
  2348. "name": "惠州",
  2349. "connectNulls": false,
  2350. "xAxisIndex": 0,
  2351. "symbolSize": 5,
  2352. "showSymbol": true,
  2353. "smooth": true,
  2354. "clip": true,
  2355. "step": false,
  2356. "data": [
  2357. [
  2358. 1,
  2359. 17.290323
  2360. ],
  2361. [
  2362. 2,
  2363. 14.035714
  2364. ],
  2365. [
  2366. 3,
  2367. 21.677419
  2368. ]
  2369. ],
  2370. "hoverAnimation": true,
  2371. "label": {
  2372. "show": false,
  2373. "margin": 8
  2374. },
  2375. "logBase": 10,
  2376. "seriesLayoutBy": "column",
  2377. "lineStyle": {
  2378. "normal": {
  2379. "width": 4,
  2380. "shadowColor": "yellow",
  2381. "shadowBlur": 10,
  2382. "shadowOffsetY": 10,
  2383. "shadowOffsetX": 10
  2384. }
  2385. },
  2386. "areaStyle": {
  2387. "opacity": 0
  2388. },
  2389. "zlevel": 0,
  2390. "z": 0,
  2391. "rippleEffect": {
  2392. "show": true,
  2393. "brushType": "stroke",
  2394. "scale": 2.5,
  2395. "period": 4
  2396. }
  2397. },
  2398. {
  2399. "type": "line",
  2400. "name": "深圳",
  2401. "connectNulls": false,
  2402. "xAxisIndex": 0,
  2403. "symbolSize": 5,
  2404. "showSymbol": true,
  2405. "smooth": true,
  2406. "clip": true,
  2407. "step": false,
  2408. "data": [
  2409. [
  2410. 1,
  2411. 17.580645
  2412. ],
  2413. [
  2414. 2,
  2415. 14.232143
  2416. ],
  2417. [
  2418. 3,
  2419. 21.596774
  2420. ]
  2421. ],
  2422. "hoverAnimation": true,
  2423. "label": {
  2424. "show": false,
  2425. "margin": 8
  2426. },
  2427. "logBase": 10,
  2428. "seriesLayoutBy": "column",
  2429. "lineStyle": {
  2430. "normal": {
  2431. "width": 4,
  2432. "shadowColor": "red",
  2433. "shadowBlur": 10,
  2434. "shadowOffsetY": 10,
  2435. "shadowOffsetX": 10
  2436. }
  2437. },
  2438. "areaStyle": {
  2439. "opacity": 0
  2440. },
  2441. "zlevel": 0,
  2442. "z": 0,
  2443. "rippleEffect": {
  2444. "show": true,
  2445. "brushType": "stroke",
  2446. "scale": 2.5,
  2447. "period": 4
  2448. }
  2449. }
  2450. ],
  2451. "xAxis": [
  2452. {
  2453. "type": "category",
  2454. "show": true,
  2455. "scale": false,
  2456. "nameLocation": "end",
  2457. "nameGap": 15,
  2458. "gridIndex": 0,
  2459. "axisLine": {
  2460. "show": true,
  2461. "onZero": true,
  2462. "onZeroAxisIndex": 0,
  2463. "lineStyle": {
  2464. "show": true,
  2465. "width": 2,
  2466. "opacity": 1,
  2467. "curveness": 0,
  2468. "type": "solid",
  2469. "color": "#DB7093"
  2470. }
  2471. },
  2472. "axisLabel": {
  2473. "show": true,
  2474. "color": "red",
  2475. "margin": 8,
  2476. "fontSize": 14
  2477. },
  2478. "inverse": false,
  2479. "offset": 0,
  2480. "splitNumber": 5,
  2481. "boundaryGap": false,
  2482. "minInterval": 0,
  2483. "splitLine": {
  2484. "show": true,
  2485. "lineStyle": {
  2486. "show": true,
  2487. "width": 1,
  2488. "opacity": 1,
  2489. "curveness": 0,
  2490. "type": "solid"
  2491. }
  2492. },
  2493. "data": [
  2494. 1,
  2495. 2,
  2496. 3,
  2497. 4,
  2498. 5,
  2499. 6,
  2500. 7,
  2501. 8,
  2502. 9,
  2503. 10,
  2504. 11,
  2505. 12
  2506. ]
  2507. }
  2508. ],
  2509. "yAxis": [
  2510. {
  2511. "name": "平均温度",
  2512. "show": true,
  2513. "scale": true,
  2514. "nameLocation": "end",
  2515. "nameGap": 15,
  2516. "nameTextStyle": {
  2517. "color": "#5470c6",
  2518. "fontWeight": "bold",
  2519. "fontSize": 16
  2520. },
  2521. "gridIndex": 0,
  2522. "axisLine": {
  2523. "show": true,
  2524. "onZero": true,
  2525. "onZeroAxisIndex": 0,
  2526. "lineStyle": {
  2527. "show": true,
  2528. "width": 2,
  2529. "opacity": 1,
  2530. "curveness": 0,
  2531. "type": "solid",
  2532. "color": "#5470c6"
  2533. }
  2534. },
  2535. "axisLabel": {
  2536. "show": true,
  2537. "color": "#5470c6",
  2538. "margin": 8,
  2539. "fontSize": 13
  2540. },
  2541. "inverse": false,
  2542. "offset": 0,
  2543. "splitNumber": 5,
  2544. "min": 11,
  2545. "max": 31,
  2546. "minInterval": 0,
  2547. "splitLine": {
  2548. "show": true,
  2549. "lineStyle": {
  2550. "show": true,
  2551. "width": 1,
  2552. "opacity": 1,
  2553. "curveness": 0,
  2554. "type": "dashed"
  2555. }
  2556. }
  2557. }
  2558. ],
  2559. "title": [
  2560. {
  2561. "show": true,
  2562. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  2563. "target": "blank",
  2564. "subtarget": "blank",
  2565. "left": "center",
  2566. "top": "2%",
  2567. "padding": 5,
  2568. "itemGap": 10,
  2569. "textAlign": "auto",
  2570. "textVerticalAlign": "auto",
  2571. "triggerEvent": false,
  2572. "textStyle": {
  2573. "color": "#DC143C",
  2574. "fontSize": 20
  2575. }
  2576. }
  2577. ],
  2578. "tooltip": {
  2579. "show": true,
  2580. "trigger": "axis",
  2581. "triggerOn": "mousemove|click",
  2582. "axisPointer": {
  2583. "type": "cross"
  2584. },
  2585. "showContent": true,
  2586. "alwaysShowContent": false,
  2587. "showDelay": 0,
  2588. "hideDelay": 100,
  2589. "enterable": false,
  2590. "confine": false,
  2591. "appendToBody": false,
  2592. "transitionDuration": 0.4,
  2593. "textStyle": {
  2594. "color": "#000"
  2595. },
  2596. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  2597. "borderColor": "#ccc",
  2598. "borderWidth": 1,
  2599. "padding": 5,
  2600. "order": "seriesAsc"
  2601. },
  2602. "color": [
  2603. "#5470c6",
  2604. "#91cc75",
  2605. "#fac858",
  2606. "#ee6666",
  2607. "#73c0de",
  2608. "#3ba272",
  2609. "#fc8452",
  2610. "#9a60b4",
  2611. "#ea7ccc"
  2612. ]
  2613. },
  2614. {
  2615. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  2616. "series": [
  2617. {
  2618. "type": "line",
  2619. "name": "广州",
  2620. "connectNulls": false,
  2621. "xAxisIndex": 0,
  2622. "symbolSize": 5,
  2623. "showSymbol": true,
  2624. "smooth": true,
  2625. "clip": true,
  2626. "step": false,
  2627. "data": [
  2628. [
  2629. 1,
  2630. 15.709677
  2631. ],
  2632. [
  2633. 2,
  2634. 12.232143
  2635. ],
  2636. [
  2637. 3,
  2638. 21.177419
  2639. ],
  2640. [
  2641. 4,
  2642. 22.533333
  2643. ]
  2644. ],
  2645. "hoverAnimation": true,
  2646. "label": {
  2647. "show": false,
  2648. "margin": 8
  2649. },
  2650. "logBase": 10,
  2651. "seriesLayoutBy": "column",
  2652. "lineStyle": {
  2653. "normal": {
  2654. "width": 4,
  2655. "shadowColor": "#696969",
  2656. "shadowBlur": 10,
  2657. "shadowOffsetY": 10,
  2658. "shadowOffsetX": 10
  2659. }
  2660. },
  2661. "areaStyle": {
  2662. "opacity": 0
  2663. },
  2664. "zlevel": 0,
  2665. "z": 0,
  2666. "rippleEffect": {
  2667. "show": true,
  2668. "brushType": "stroke",
  2669. "scale": 2.5,
  2670. "period": 4
  2671. }
  2672. },
  2673. {
  2674. "type": "line",
  2675. "name": "河源",
  2676. "connectNulls": false,
  2677. "xAxisIndex": 0,
  2678. "symbolSize": 5,
  2679. "showSymbol": true,
  2680. "smooth": true,
  2681. "clip": true,
  2682. "step": false,
  2683. "data": [
  2684. [
  2685. 1,
  2686. 15.080645
  2687. ],
  2688. [
  2689. 2,
  2690. 11.607143
  2691. ],
  2692. [
  2693. 3,
  2694. 21.096774
  2695. ],
  2696. [
  2697. 4,
  2698. 22.300000
  2699. ]
  2700. ],
  2701. "hoverAnimation": true,
  2702. "label": {
  2703. "show": false,
  2704. "margin": 8
  2705. },
  2706. "logBase": 10,
  2707. "seriesLayoutBy": "column",
  2708. "lineStyle": {
  2709. "normal": {
  2710. "width": 4,
  2711. "shadowColor": "#696969",
  2712. "shadowBlur": 10,
  2713. "shadowOffsetY": 10,
  2714. "shadowOffsetX": 10
  2715. }
  2716. },
  2717. "areaStyle": {
  2718. "opacity": 0
  2719. },
  2720. "zlevel": 0,
  2721. "z": 0,
  2722. "rippleEffect": {
  2723. "show": true,
  2724. "brushType": "stroke",
  2725. "scale": 2.5,
  2726. "period": 4
  2727. }
  2728. },
  2729. {
  2730. "type": "line",
  2731. "name": "惠州",
  2732. "connectNulls": false,
  2733. "xAxisIndex": 0,
  2734. "symbolSize": 5,
  2735. "showSymbol": true,
  2736. "smooth": true,
  2737. "clip": true,
  2738. "step": false,
  2739. "data": [
  2740. [
  2741. 1,
  2742. 17.290323
  2743. ],
  2744. [
  2745. 2,
  2746. 14.035714
  2747. ],
  2748. [
  2749. 3,
  2750. 21.677419
  2751. ],
  2752. [
  2753. 4,
  2754. 22.750000
  2755. ]
  2756. ],
  2757. "hoverAnimation": true,
  2758. "label": {
  2759. "show": false,
  2760. "margin": 8
  2761. },
  2762. "logBase": 10,
  2763. "seriesLayoutBy": "column",
  2764. "lineStyle": {
  2765. "normal": {
  2766. "width": 4,
  2767. "shadowColor": "#696969",
  2768. "shadowBlur": 10,
  2769. "shadowOffsetY": 10,
  2770. "shadowOffsetX": 10
  2771. }
  2772. },
  2773. "areaStyle": {
  2774. "opacity": 0
  2775. },
  2776. "zlevel": 0,
  2777. "z": 0,
  2778. "rippleEffect": {
  2779. "show": true,
  2780. "brushType": "stroke",
  2781. "scale": 2.5,
  2782. "period": 4
  2783. }
  2784. },
  2785. {
  2786. "type": "line",
  2787. "name": "深圳",
  2788. "connectNulls": false,
  2789. "xAxisIndex": 0,
  2790. "symbolSize": 5,
  2791. "showSymbol": true,
  2792. "smooth": true,
  2793. "clip": true,
  2794. "step": false,
  2795. "data": [
  2796. [
  2797. 1,
  2798. 17.580645
  2799. ],
  2800. [
  2801. 2,
  2802. 14.232143
  2803. ],
  2804. [
  2805. 3,
  2806. 21.596774
  2807. ],
  2808. [
  2809. 4,
  2810. 23.466667
  2811. ]
  2812. ],
  2813. "hoverAnimation": true,
  2814. "label": {
  2815. "show": false,
  2816. "margin": 8
  2817. },
  2818. "logBase": 10,
  2819. "seriesLayoutBy": "column",
  2820. "lineStyle": {
  2821. "normal": {
  2822. "width": 4,
  2823. "shadowColor": "#696969",
  2824. "shadowBlur": 10,
  2825. "shadowOffsetY": 10,
  2826. "shadowOffsetX": 10
  2827. }
  2828. },
  2829. "areaStyle": {
  2830. "opacity": 0
  2831. },
  2832. "zlevel": 0,
  2833. "z": 0,
  2834. "rippleEffect": {
  2835. "show": true,
  2836. "brushType": "stroke",
  2837. "scale": 2.5,
  2838. "period": 4
  2839. }
  2840. }
  2841. ],
  2842. "xAxis": [
  2843. {
  2844. "type": "category",
  2845. "show": true,
  2846. "scale": false,
  2847. "nameLocation": "end",
  2848. "nameGap": 15,
  2849. "gridIndex": 0,
  2850. "axisLine": {
  2851. "show": true,
  2852. "onZero": true,
  2853. "onZeroAxisIndex": 0,
  2854. "lineStyle": {
  2855. "show": true,
  2856. "width": 2,
  2857. "opacity": 1,
  2858. "curveness": 0,
  2859. "type": "solid",
  2860. "color": "#DB7093"
  2861. }
  2862. },
  2863. "axisLabel": {
  2864. "show": true,
  2865. "color": "red",
  2866. "margin": 8,
  2867. "fontSize": 14
  2868. },
  2869. "inverse": false,
  2870. "offset": 0,
  2871. "splitNumber": 5,
  2872. "boundaryGap": false,
  2873. "minInterval": 0,
  2874. "splitLine": {
  2875. "show": true,
  2876. "lineStyle": {
  2877. "show": true,
  2878. "width": 1,
  2879. "opacity": 1,
  2880. "curveness": 0,
  2881. "type": "solid"
  2882. }
  2883. },
  2884. "data": [
  2885. 1,
  2886. 2,
  2887. 3,
  2888. 4,
  2889. 5,
  2890. 6,
  2891. 7,
  2892. 8,
  2893. 9,
  2894. 10,
  2895. 11,
  2896. 12
  2897. ]
  2898. }
  2899. ],
  2900. "yAxis": [
  2901. {
  2902. "name": "平均温度",
  2903. "show": true,
  2904. "scale": true,
  2905. "nameLocation": "end",
  2906. "nameGap": 15,
  2907. "nameTextStyle": {
  2908. "color": "#5470c6",
  2909. "fontWeight": "bold",
  2910. "fontSize": 16
  2911. },
  2912. "gridIndex": 0,
  2913. "axisLine": {
  2914. "show": true,
  2915. "onZero": true,
  2916. "onZeroAxisIndex": 0,
  2917. "lineStyle": {
  2918. "show": true,
  2919. "width": 2,
  2920. "opacity": 1,
  2921. "curveness": 0,
  2922. "type": "solid",
  2923. "color": "#5470c6"
  2924. }
  2925. },
  2926. "axisLabel": {
  2927. "show": true,
  2928. "color": "#5470c6",
  2929. "margin": 8,
  2930. "fontSize": 13
  2931. },
  2932. "inverse": false,
  2933. "offset": 0,
  2934. "splitNumber": 5,
  2935. "min": 12,
  2936. "max": 32,
  2937. "minInterval": 0,
  2938. "splitLine": {
  2939. "show": true,
  2940. "lineStyle": {
  2941. "show": true,
  2942. "width": 1,
  2943. "opacity": 1,
  2944. "curveness": 0,
  2945. "type": "dashed"
  2946. }
  2947. }
  2948. }
  2949. ],
  2950. "title": [
  2951. {
  2952. "show": true,
  2953. "text": "广州河源惠州深圳2022年每月平均温度变化趋势",
  2954. "target": "blank",
  2955. "subtarget": "blank",
  2956. "left": "center",
  2957. "top": "2%",
  2958. "padding": 5,
  2959. "itemGap": 10,
  2960. "textAlign": "auto",
  2961. "textVerticalAlign": "auto",
  2962. "triggerEvent": false,
  2963. "textStyle": {
  2964. "color": "#DC143C",
  2965. "fontSize": 20
  2966. }
  2967. }
  2968. ],
  2969. "tooltip": {
  2970. "show": true,
  2971. "trigger": "axis",
  2972. "triggerOn": "mousemove|click",
  2973. "axisPointer": {
  2974. "type": "cross"
  2975. },
  2976. "showContent": true,
  2977. "alwaysShowContent": false,
  2978. "showDelay": 0,
  2979. "hideDelay": 100,
  2980. "enterable": false,
  2981. "confine": false,
  2982. "appendToBody": false,
  2983. "transitionDuration": 0.4,
  2984. "textStyle": {
  2985. "color": "#000"
  2986. },
  2987. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  2988. "borderColor": "#ccc",
  2989. "borderWidth": 1,
  2990. "padding": 5,
  2991. "order": "seriesAsc"
  2992. },
  2993. "color": [
  2994. "#5470c6",
  2995. "#91cc75",
  2996. "#fac858",
  2997. "#ee6666",
  2998. "#73c0de",
  2999. "#3ba272",
  3000. "#fc8452",
  3001. "#9a60b4",
  3002. "#ea7ccc"
  3003. ]
  3004. },
  3005. {
  3006. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  3007. "series": [
  3008. {
  3009. "type": "line",
  3010. "name": "广州",
  3011. "connectNulls": false,
  3012. "xAxisIndex": 0,
  3013. "symbolSize": 5,
  3014. "showSymbol": true,
  3015. "smooth": true,
  3016. "clip": true,
  3017. "step": false,
  3018. "data": [
  3019. [
  3020. 1,
  3021. 15.709677
  3022. ],
  3023. [
  3024. 2,
  3025. 12.232143
  3026. ],
  3027. [
  3028. 3,
  3029. 21.177419
  3030. ],
  3031. [
  3032. 4,
  3033. 22.533333
  3034. ],
  3035. [
  3036. 5,
  3037. 24.370968
  3038. ]
  3039. ],
  3040. "hoverAnimation": true,
  3041. "label": {
  3042. "show": false,
  3043. "margin": 8
  3044. },
  3045. "logBase": 10,
  3046. "seriesLayoutBy": "column",
  3047. "lineStyle": {
  3048. "normal": {
  3049. "width": 4,
  3050. "shadowColor": "#696969",
  3051. "shadowBlur": 10,
  3052. "shadowOffsetY": 10,
  3053. "shadowOffsetX": 10
  3054. }
  3055. },
  3056. "areaStyle": {
  3057. "opacity": 0
  3058. },
  3059. "zlevel": 0,
  3060. "z": 0,
  3061. "rippleEffect": {
  3062. "show": true,
  3063. "brushType": "stroke",
  3064. "scale": 2.5,
  3065. "period": 4
  3066. }
  3067. },
  3068. {
  3069. "type": "line",
  3070. "name": "河源",
  3071. "connectNulls": false,
  3072. "xAxisIndex": 0,
  3073. "symbolSize": 5,
  3074. "showSymbol": true,
  3075. "smooth": true,
  3076. "clip": true,
  3077. "step": false,
  3078. "data": [
  3079. [
  3080. 1,
  3081. 15.080645
  3082. ],
  3083. [
  3084. 2,
  3085. 11.607143
  3086. ],
  3087. [
  3088. 3,
  3089. 21.096774
  3090. ],
  3091. [
  3092. 4,
  3093. 22.300000
  3094. ],
  3095. [
  3096. 5,
  3097. 23.887097
  3098. ]
  3099. ],
  3100. "hoverAnimation": true,
  3101. "label": {
  3102. "show": false,
  3103. "margin": 8
  3104. },
  3105. "logBase": 10,
  3106. "seriesLayoutBy": "column",
  3107. "lineStyle": {
  3108. "normal": {
  3109. "width": 4,
  3110. "shadowColor": "#696969",
  3111. "shadowBlur": 10,
  3112. "shadowOffsetY": 10,
  3113. "shadowOffsetX": 10
  3114. }
  3115. },
  3116. "areaStyle": {
  3117. "opacity": 0
  3118. },
  3119. "zlevel": 0,
  3120. "z": 0,
  3121. "rippleEffect": {
  3122. "show": true,
  3123. "brushType": "stroke",
  3124. "scale": 2.5,
  3125. "period": 4
  3126. }
  3127. },
  3128. {
  3129. "type": "line",
  3130. "name": "惠州",
  3131. "connectNulls": false,
  3132. "xAxisIndex": 0,
  3133. "symbolSize": 5,
  3134. "showSymbol": true,
  3135. "smooth": true,
  3136. "clip": true,
  3137. "step": false,
  3138. "data": [
  3139. [
  3140. 1,
  3141. 17.290323
  3142. ],
  3143. [
  3144. 2,
  3145. 14.035714
  3146. ],
  3147. [
  3148. 3,
  3149. 21.677419
  3150. ],
  3151. [
  3152. 4,
  3153. 22.750000
  3154. ],
  3155. [
  3156. 5,
  3157. 24.774194
  3158. ]
  3159. ],
  3160. "hoverAnimation": true,
  3161. "label": {
  3162. "show": false,
  3163. "margin": 8
  3164. },
  3165. "logBase": 10,
  3166. "seriesLayoutBy": "column",
  3167. "lineStyle": {
  3168. "normal": {
  3169. "width": 4,
  3170. "shadowColor": "#696969",
  3171. "shadowBlur": 10,
  3172. "shadowOffsetY": 10,
  3173. "shadowOffsetX": 10
  3174. }
  3175. },
  3176. "areaStyle": {
  3177. "opacity": 0
  3178. },
  3179. "zlevel": 0,
  3180. "z": 0,
  3181. "rippleEffect": {
  3182. "show": true,
  3183. "brushType": "stroke",
  3184. "scale": 2.5,
  3185. "period": 4
  3186. }
  3187. },
  3188. {
  3189. "type": "line",
  3190. "name": "深圳",
  3191. "connectNulls": false,
  3192. "xAxisIndex": 0,
  3193. "symbolSize": 5,
  3194. "showSymbol": true,
  3195. "smooth": true,
  3196. "clip": true,
  3197. "step": false,
  3198. "data": [
  3199. [
  3200. 1,
  3201. 17.580645
  3202. ],
  3203. [
  3204. 2,
  3205. 14.232143
  3206. ],
  3207. [
  3208. 3,
  3209. 21.596774
  3210. ],
  3211. [
  3212. 4,
  3213. 23.466667
  3214. ],
  3215. [
  3216. 5,
  3217. 25.064516
  3218. ]
  3219. ],
  3220. "hoverAnimation": true,
  3221. "label": {
  3222. "show": false,
  3223. "margin": 8
  3224. },
  3225. "logBase": 10,
  3226. "seriesLayoutBy": "column",
  3227. "lineStyle": {
  3228. "normal": {
  3229. "width": 4,
  3230. "shadowColor": "#696969",
  3231. "shadowBlur": 10,
  3232. "shadowOffsetY": 10,
  3233. "shadowOffsetX": 10
  3234. }
  3235. },
  3236. "areaStyle": {
  3237. "opacity": 0
  3238. },
  3239. "zlevel": 0,
  3240. "z": 0,
  3241. "rippleEffect": {
  3242. "show": true,
  3243. "brushType": "stroke",
  3244. "scale": 2.5,
  3245. "period": 4
  3246. }
  3247. }
  3248. ],
  3249. "xAxis": [
  3250. {
  3251. "type": "category",
  3252. "show": true,
  3253. "scale": false,
  3254. "nameLocation": "end",
  3255. "nameGap": 15,
  3256. "gridIndex": 0,
  3257. "axisLine": {
  3258. "show": true,
  3259. "onZero": true,
  3260. "onZeroAxisIndex": 0,
  3261. "lineStyle": {
  3262. "show": true,
  3263. "width": 2,
  3264. "opacity": 1,
  3265. "curveness": 0,
  3266. "type": "solid",
  3267. "color": "#DB7093"
  3268. }
  3269. },
  3270. "axisLabel": {
  3271. "show": true,
  3272. "color": "red",
  3273. "margin": 8,
  3274. "fontSize": 14
  3275. },
  3276. "inverse": false,
  3277. "offset": 0,
  3278. "splitNumber": 5,
  3279. "boundaryGap": false,
  3280. "minInterval": 0,
  3281. "splitLine": {
  3282. "show": true,
  3283. "lineStyle": {
  3284. "show": true,
  3285. "width": 1,
  3286. "opacity": 1,
  3287. "curveness": 0,
  3288. "type": "solid"
  3289. }
  3290. },
  3291. "data": [
  3292. 1,
  3293. 2,
  3294. 3,
  3295. 4,
  3296. 5,
  3297. 6,
  3298. 7,
  3299. 8,
  3300. 9,
  3301. 10,
  3302. 11,
  3303. 12
  3304. ]
  3305. }
  3306. ],
  3307. "yAxis": [
  3308. {
  3309. "name": "平均温度",
  3310. "show": true,
  3311. "scale": true,
  3312. "nameLocation": "end",
  3313. "nameGap": 15,
  3314. "nameTextStyle": {
  3315. "color": "#5470c6",
  3316. "fontWeight": "bold",
  3317. "fontSize": 16
  3318. },
  3319. "gridIndex": 0,
  3320. "axisLine": {
  3321. "show": true,
  3322. "onZero": true,
  3323. "onZeroAxisIndex": 0,
  3324. "lineStyle": {
  3325. "show": true,
  3326. "width": 2,
  3327. "opacity": 1,
  3328. "curveness": 0,
  3329. "type": "solid",
  3330. "color": "#5470c6"
  3331. }
  3332. },
  3333. "axisLabel": {
  3334. "show": true,
  3335. "color": "#5470c6",
  3336. "margin": 8,
  3337. "fontSize": 13
  3338. },
  3339. "inverse": false,
  3340. "offset": 0,
  3341. "splitNumber": 5,
  3342. "min": 14,
  3343. "max": 35,
  3344. "minInterval": 0,
  3345. "splitLine": {
  3346. "show": true,
  3347. "lineStyle": {
  3348. "show": true,
  3349. "width": 1,
  3350. "opacity": 1,
  3351. "curveness": 0,
  3352. "type": "dashed"
  3353. }
  3354. }
  3355. }
  3356. ],
  3357. "title": [
  3358. {
  3359. "show": true,
  3360. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  3361. "target": "blank",
  3362. "subtarget": "blank",
  3363. "left": "center",
  3364. "top": "2%",
  3365. "padding": 5,
  3366. "itemGap": 10,
  3367. "textAlign": "auto",
  3368. "textVerticalAlign": "auto",
  3369. "triggerEvent": false,
  3370. "textStyle": {
  3371. "color": "#DC143C",
  3372. "fontSize": 20
  3373. }
  3374. }
  3375. ],
  3376. "tooltip": {
  3377. "show": true,
  3378. "trigger": "axis",
  3379. "triggerOn": "mousemove|click",
  3380. "axisPointer": {
  3381. "type": "cross"
  3382. },
  3383. "showContent": true,
  3384. "alwaysShowContent": false,
  3385. "showDelay": 0,
  3386. "hideDelay": 100,
  3387. "enterable": false,
  3388. "confine": false,
  3389. "appendToBody": false,
  3390. "transitionDuration": 0.4,
  3391. "textStyle": {
  3392. "color": "#000"
  3393. },
  3394. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  3395. "borderColor": "#ccc",
  3396. "borderWidth": 1,
  3397. "padding": 5,
  3398. "order": "seriesAsc"
  3399. },
  3400. "color": [
  3401. "#5470c6",
  3402. "#91cc75",
  3403. "#fac858",
  3404. "#ee6666",
  3405. "#73c0de",
  3406. "#3ba272",
  3407. "#fc8452",
  3408. "#9a60b4",
  3409. "#ea7ccc"
  3410. ]
  3411. },
  3412. {
  3413. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  3414. "series": [
  3415. {
  3416. "type": "line",
  3417. "name": "广州",
  3418. "connectNulls": false,
  3419. "xAxisIndex": 0,
  3420. "symbolSize": 5,
  3421. "showSymbol": true,
  3422. "smooth": true,
  3423. "clip": true,
  3424. "step": false,
  3425. "data": [
  3426. [
  3427. 1,
  3428. 15.709677
  3429. ],
  3430. [
  3431. 2,
  3432. 12.232143
  3433. ],
  3434. [
  3435. 3,
  3436. 21.177419
  3437. ],
  3438. [
  3439. 4,
  3440. 22.533333
  3441. ],
  3442. [
  3443. 5,
  3444. 24.370968
  3445. ],
  3446. [
  3447. 6,
  3448. 28.000000
  3449. ]
  3450. ],
  3451. "hoverAnimation": true,
  3452. "label": {
  3453. "show": false,
  3454. "margin": 8
  3455. },
  3456. "logBase": 10,
  3457. "seriesLayoutBy": "column",
  3458. "lineStyle": {
  3459. "normal": {
  3460. "width": 4,
  3461. "shadowColor": "#696969",
  3462. "shadowBlur": 10,
  3463. "shadowOffsetY": 10,
  3464. "shadowOffsetX": 10
  3465. }
  3466. },
  3467. "areaStyle": {
  3468. "opacity": 0
  3469. },
  3470. "zlevel": 0,
  3471. "z": 0,
  3472. "rippleEffect": {
  3473. "show": true,
  3474. "brushType": "stroke",
  3475. "scale": 2.5,
  3476. "period": 4
  3477. }
  3478. },
  3479. {
  3480. "type": "line",
  3481. "name": "河源",
  3482. "connectNulls": false,
  3483. "xAxisIndex": 0,
  3484. "symbolSize": 5,
  3485. "showSymbol": true,
  3486. "smooth": true,
  3487. "clip": true,
  3488. "step": false,
  3489. "data": [
  3490. [
  3491. 1,
  3492. 15.080645
  3493. ],
  3494. [
  3495. 2,
  3496. 11.607143
  3497. ],
  3498. [
  3499. 3,
  3500. 21.096774
  3501. ],
  3502. [
  3503. 4,
  3504. 22.300000
  3505. ],
  3506. [
  3507. 5,
  3508. 23.887097
  3509. ],
  3510. [
  3511. 6,
  3512. 27.550000
  3513. ]
  3514. ],
  3515. "hoverAnimation": true,
  3516. "label": {
  3517. "show": false,
  3518. "margin": 8
  3519. },
  3520. "logBase": 10,
  3521. "seriesLayoutBy": "column",
  3522. "lineStyle": {
  3523. "normal": {
  3524. "width": 4,
  3525. "shadowColor": "#696969",
  3526. "shadowBlur": 10,
  3527. "shadowOffsetY": 10,
  3528. "shadowOffsetX": 10
  3529. }
  3530. },
  3531. "areaStyle": {
  3532. "opacity": 0
  3533. },
  3534. "zlevel": 0,
  3535. "z": 0,
  3536. "rippleEffect": {
  3537. "show": true,
  3538. "brushType": "stroke",
  3539. "scale": 2.5,
  3540. "period": 4
  3541. }
  3542. },
  3543. {
  3544. "type": "line",
  3545. "name": "惠州",
  3546. "connectNulls": false,
  3547. "xAxisIndex": 0,
  3548. "symbolSize": 5,
  3549. "showSymbol": true,
  3550. "smooth": true,
  3551. "clip": true,
  3552. "step": false,
  3553. "data": [
  3554. [
  3555. 1,
  3556. 17.290323
  3557. ],
  3558. [
  3559. 2,
  3560. 14.035714
  3561. ],
  3562. [
  3563. 3,
  3564. 21.677419
  3565. ],
  3566. [
  3567. 4,
  3568. 22.750000
  3569. ],
  3570. [
  3571. 5,
  3572. 24.774194
  3573. ],
  3574. [
  3575. 6,
  3576. 28.050000
  3577. ]
  3578. ],
  3579. "hoverAnimation": true,
  3580. "label": {
  3581. "show": false,
  3582. "margin": 8
  3583. },
  3584. "logBase": 10,
  3585. "seriesLayoutBy": "column",
  3586. "lineStyle": {
  3587. "normal": {
  3588. "width": 4,
  3589. "shadowColor": "#696969",
  3590. "shadowBlur": 10,
  3591. "shadowOffsetY": 10,
  3592. "shadowOffsetX": 10
  3593. }
  3594. },
  3595. "areaStyle": {
  3596. "opacity": 0
  3597. },
  3598. "zlevel": 0,
  3599. "z": 0,
  3600. "rippleEffect": {
  3601. "show": true,
  3602. "brushType": "stroke",
  3603. "scale": 2.5,
  3604. "period": 4
  3605. }
  3606. },
  3607. {
  3608. "type": "line",
  3609. "name": "深圳",
  3610. "connectNulls": false,
  3611. "xAxisIndex": 0,
  3612. "symbolSize": 5,
  3613. "showSymbol": true,
  3614. "smooth": true,
  3615. "clip": true,
  3616. "step": false,
  3617. "data": [
  3618. [
  3619. 1,
  3620. 17.580645
  3621. ],
  3622. [
  3623. 2,
  3624. 14.232143
  3625. ],
  3626. [
  3627. 3,
  3628. 21.596774
  3629. ],
  3630. [
  3631. 4,
  3632. 23.466667
  3633. ],
  3634. [
  3635. 5,
  3636. 25.064516
  3637. ],
  3638. [
  3639. 6,
  3640. 28.166667
  3641. ]
  3642. ],
  3643. "hoverAnimation": true,
  3644. "label": {
  3645. "show": false,
  3646. "margin": 8
  3647. },
  3648. "logBase": 10,
  3649. "seriesLayoutBy": "column",
  3650. "lineStyle": {
  3651. "normal": {
  3652. "width": 4,
  3653. "shadowColor": "#696969",
  3654. "shadowBlur": 10,
  3655. "shadowOffsetY": 10,
  3656. "shadowOffsetX": 10
  3657. }
  3658. },
  3659. "areaStyle": {
  3660. "opacity": 0
  3661. },
  3662. "zlevel": 0,
  3663. "z": 0,
  3664. "rippleEffect": {
  3665. "show": true,
  3666. "brushType": "stroke",
  3667. "scale": 2.5,
  3668. "period": 4
  3669. }
  3670. }
  3671. ],
  3672. "xAxis": [
  3673. {
  3674. "type": "category",
  3675. "show": true,
  3676. "scale": false,
  3677. "nameLocation": "end",
  3678. "nameGap": 15,
  3679. "gridIndex": 0,
  3680. "axisLine": {
  3681. "show": true,
  3682. "onZero": true,
  3683. "onZeroAxisIndex": 0,
  3684. "lineStyle": {
  3685. "show": true,
  3686. "width": 2,
  3687. "opacity": 1,
  3688. "curveness": 0,
  3689. "type": "solid",
  3690. "color": "#DB7093"
  3691. }
  3692. },
  3693. "axisLabel": {
  3694. "show": true,
  3695. "color": "red",
  3696. "margin": 8,
  3697. "fontSize": 14
  3698. },
  3699. "inverse": false,
  3700. "offset": 0,
  3701. "splitNumber": 5,
  3702. "boundaryGap": false,
  3703. "minInterval": 0,
  3704. "splitLine": {
  3705. "show": true,
  3706. "lineStyle": {
  3707. "show": true,
  3708. "width": 1,
  3709. "opacity": 1,
  3710. "curveness": 0,
  3711. "type": "solid"
  3712. }
  3713. },
  3714. "data": [
  3715. 1,
  3716. 2,
  3717. 3,
  3718. 4,
  3719. 5,
  3720. 6,
  3721. 7,
  3722. 8,
  3723. 9,
  3724. 10,
  3725. 11,
  3726. 12
  3727. ]
  3728. }
  3729. ],
  3730. "yAxis": [
  3731. {
  3732. "name": "平均温度",
  3733. "show": true,
  3734. "scale": true,
  3735. "nameLocation": "end",
  3736. "nameGap": 15,
  3737. "nameTextStyle": {
  3738. "color": "#5470c6",
  3739. "fontWeight": "bold",
  3740. "fontSize": 16
  3741. },
  3742. "gridIndex": 0,
  3743. "axisLine": {
  3744. "show": true,
  3745. "onZero": true,
  3746. "onZeroAxisIndex": 0,
  3747. "lineStyle": {
  3748. "show": true,
  3749. "width": 2,
  3750. "opacity": 1,
  3751. "curveness": 0,
  3752. "type": "solid",
  3753. "color": "#5470c6"
  3754. }
  3755. },
  3756. "axisLabel": {
  3757. "show": true,
  3758. "color": "#5470c6",
  3759. "margin": 8,
  3760. "fontSize": 13
  3761. },
  3762. "inverse": false,
  3763. "offset": 0,
  3764. "splitNumber": 5,
  3765. "min": 18,
  3766. "max": 39,
  3767. "minInterval": 0,
  3768. "splitLine": {
  3769. "show": true,
  3770. "lineStyle": {
  3771. "show": true,
  3772. "width": 1,
  3773. "opacity": 1,
  3774. "curveness": 0,
  3775. "type": "dashed"
  3776. }
  3777. }
  3778. }
  3779. ],
  3780. "title": [
  3781. {
  3782. "show": true,
  3783. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  3784. "target": "blank",
  3785. "subtarget": "blank",
  3786. "left": "center",
  3787. "top": "2%",
  3788. "padding": 5,
  3789. "itemGap": 10,
  3790. "textAlign": "auto",
  3791. "textVerticalAlign": "auto",
  3792. "triggerEvent": false,
  3793. "textStyle": {
  3794. "color": "#DC143C",
  3795. "fontSize": 20
  3796. }
  3797. }
  3798. ],
  3799. "tooltip": {
  3800. "show": true,
  3801. "trigger": "axis",
  3802. "triggerOn": "mousemove|click",
  3803. "axisPointer": {
  3804. "type": "cross"
  3805. },
  3806. "showContent": true,
  3807. "alwaysShowContent": false,
  3808. "showDelay": 0,
  3809. "hideDelay": 100,
  3810. "enterable": false,
  3811. "confine": false,
  3812. "appendToBody": false,
  3813. "transitionDuration": 0.4,
  3814. "textStyle": {
  3815. "color": "#000"
  3816. },
  3817. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  3818. "borderColor": "#ccc",
  3819. "borderWidth": 1,
  3820. "padding": 5,
  3821. "order": "seriesAsc"
  3822. },
  3823. "color": [
  3824. "#5470c6",
  3825. "#91cc75",
  3826. "#fac858",
  3827. "#ee6666",
  3828. "#73c0de",
  3829. "#3ba272",
  3830. "#fc8452",
  3831. "#9a60b4",
  3832. "#ea7ccc"
  3833. ]
  3834. },
  3835. {
  3836. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  3837. "series": [
  3838. {
  3839. "type": "line",
  3840. "name": "广州",
  3841. "connectNulls": false,
  3842. "xAxisIndex": 0,
  3843. "symbolSize": 5,
  3844. "showSymbol": true,
  3845. "smooth": true,
  3846. "clip": true,
  3847. "step": false,
  3848. "data": [
  3849. [
  3850. 1,
  3851. 15.709677
  3852. ],
  3853. [
  3854. 2,
  3855. 12.232143
  3856. ],
  3857. [
  3858. 3,
  3859. 21.177419
  3860. ],
  3861. [
  3862. 4,
  3863. 22.533333
  3864. ],
  3865. [
  3866. 5,
  3867. 24.370968
  3868. ],
  3869. [
  3870. 6,
  3871. 28.000000
  3872. ],
  3873. [
  3874. 7,
  3875. 30.354839
  3876. ]
  3877. ],
  3878. "hoverAnimation": true,
  3879. "label": {
  3880. "show": false,
  3881. "margin": 8
  3882. },
  3883. "logBase": 10,
  3884. "seriesLayoutBy": "column",
  3885. "lineStyle": {
  3886. "normal": {
  3887. "width": 4,
  3888. "shadowColor": "#696969",
  3889. "shadowBlur": 10,
  3890. "shadowOffsetY": 10,
  3891. "shadowOffsetX": 10
  3892. }
  3893. },
  3894. "areaStyle": {
  3895. "opacity": 0
  3896. },
  3897. "zlevel": 0,
  3898. "z": 0,
  3899. "rippleEffect": {
  3900. "show": true,
  3901. "brushType": "stroke",
  3902. "scale": 2.5,
  3903. "period": 4
  3904. }
  3905. },
  3906. {
  3907. "type": "line",
  3908. "name": "河源",
  3909. "connectNulls": false,
  3910. "xAxisIndex": 0,
  3911. "symbolSize": 5,
  3912. "showSymbol": true,
  3913. "smooth": true,
  3914. "clip": true,
  3915. "step": false,
  3916. "data": [
  3917. [
  3918. 1,
  3919. 15.080645
  3920. ],
  3921. [
  3922. 2,
  3923. 11.607143
  3924. ],
  3925. [
  3926. 3,
  3927. 21.096774
  3928. ],
  3929. [
  3930. 4,
  3931. 22.300000
  3932. ],
  3933. [
  3934. 5,
  3935. 23.887097
  3936. ],
  3937. [
  3938. 6,
  3939. 27.550000
  3940. ],
  3941. [
  3942. 7,
  3943. 30.419355
  3944. ]
  3945. ],
  3946. "hoverAnimation": true,
  3947. "label": {
  3948. "show": false,
  3949. "margin": 8
  3950. },
  3951. "logBase": 10,
  3952. "seriesLayoutBy": "column",
  3953. "lineStyle": {
  3954. "normal": {
  3955. "width": 4,
  3956. "shadowColor": "#696969",
  3957. "shadowBlur": 10,
  3958. "shadowOffsetY": 10,
  3959. "shadowOffsetX": 10
  3960. }
  3961. },
  3962. "areaStyle": {
  3963. "opacity": 0
  3964. },
  3965. "zlevel": 0,
  3966. "z": 0,
  3967. "rippleEffect": {
  3968. "show": true,
  3969. "brushType": "stroke",
  3970. "scale": 2.5,
  3971. "period": 4
  3972. }
  3973. },
  3974. {
  3975. "type": "line",
  3976. "name": "惠州",
  3977. "connectNulls": false,
  3978. "xAxisIndex": 0,
  3979. "symbolSize": 5,
  3980. "showSymbol": true,
  3981. "smooth": true,
  3982. "clip": true,
  3983. "step": false,
  3984. "data": [
  3985. [
  3986. 1,
  3987. 17.290323
  3988. ],
  3989. [
  3990. 2,
  3991. 14.035714
  3992. ],
  3993. [
  3994. 3,
  3995. 21.677419
  3996. ],
  3997. [
  3998. 4,
  3999. 22.750000
  4000. ],
  4001. [
  4002. 5,
  4003. 24.774194
  4004. ],
  4005. [
  4006. 6,
  4007. 28.050000
  4008. ],
  4009. [
  4010. 7,
  4011. 29.306452
  4012. ]
  4013. ],
  4014. "hoverAnimation": true,
  4015. "label": {
  4016. "show": false,
  4017. "margin": 8
  4018. },
  4019. "logBase": 10,
  4020. "seriesLayoutBy": "column",
  4021. "lineStyle": {
  4022. "normal": {
  4023. "width": 4,
  4024. "shadowColor": "#696969",
  4025. "shadowBlur": 10,
  4026. "shadowOffsetY": 10,
  4027. "shadowOffsetX": 10
  4028. }
  4029. },
  4030. "areaStyle": {
  4031. "opacity": 0
  4032. },
  4033. "zlevel": 0,
  4034. "z": 0,
  4035. "rippleEffect": {
  4036. "show": true,
  4037. "brushType": "stroke",
  4038. "scale": 2.5,
  4039. "period": 4
  4040. }
  4041. },
  4042. {
  4043. "type": "line",
  4044. "name": "深圳",
  4045. "connectNulls": false,
  4046. "xAxisIndex": 0,
  4047. "symbolSize": 5,
  4048. "showSymbol": true,
  4049. "smooth": true,
  4050. "clip": true,
  4051. "step": false,
  4052. "data": [
  4053. [
  4054. 1,
  4055. 17.580645
  4056. ],
  4057. [
  4058. 2,
  4059. 14.232143
  4060. ],
  4061. [
  4062. 3,
  4063. 21.596774
  4064. ],
  4065. [
  4066. 4,
  4067. 23.466667
  4068. ],
  4069. [
  4070. 5,
  4071. 25.064516
  4072. ],
  4073. [
  4074. 6,
  4075. 28.166667
  4076. ],
  4077. [
  4078. 7,
  4079. 30.016129
  4080. ]
  4081. ],
  4082. "hoverAnimation": true,
  4083. "label": {
  4084. "show": false,
  4085. "margin": 8
  4086. },
  4087. "logBase": 10,
  4088. "seriesLayoutBy": "column",
  4089. "lineStyle": {
  4090. "normal": {
  4091. "width": 4,
  4092. "shadowColor": "#696969",
  4093. "shadowBlur": 10,
  4094. "shadowOffsetY": 10,
  4095. "shadowOffsetX": 10
  4096. }
  4097. },
  4098. "areaStyle": {
  4099. "opacity": 0
  4100. },
  4101. "zlevel": 0,
  4102. "z": 0,
  4103. "rippleEffect": {
  4104. "show": true,
  4105. "brushType": "stroke",
  4106. "scale": 2.5,
  4107. "period": 4
  4108. }
  4109. }
  4110. ],
  4111. "xAxis": [
  4112. {
  4113. "type": "category",
  4114. "show": true,
  4115. "scale": false,
  4116. "nameLocation": "end",
  4117. "nameGap": 15,
  4118. "gridIndex": 0,
  4119. "axisLine": {
  4120. "show": true,
  4121. "onZero": true,
  4122. "onZeroAxisIndex": 0,
  4123. "lineStyle": {
  4124. "show": true,
  4125. "width": 2,
  4126. "opacity": 1,
  4127. "curveness": 0,
  4128. "type": "solid",
  4129. "color": "#DB7093"
  4130. }
  4131. },
  4132. "axisLabel": {
  4133. "show": true,
  4134. "color": "red",
  4135. "margin": 8,
  4136. "fontSize": 14
  4137. },
  4138. "inverse": false,
  4139. "offset": 0,
  4140. "splitNumber": 5,
  4141. "boundaryGap": false,
  4142. "minInterval": 0,
  4143. "splitLine": {
  4144. "show": true,
  4145. "lineStyle": {
  4146. "show": true,
  4147. "width": 1,
  4148. "opacity": 1,
  4149. "curveness": 0,
  4150. "type": "solid"
  4151. }
  4152. },
  4153. "data": [
  4154. 1,
  4155. 2,
  4156. 3,
  4157. 4,
  4158. 5,
  4159. 6,
  4160. 7,
  4161. 8,
  4162. 9,
  4163. 10,
  4164. 11,
  4165. 12
  4166. ]
  4167. }
  4168. ],
  4169. "yAxis": [
  4170. {
  4171. "name": "平均温度",
  4172. "show": true,
  4173. "scale": true,
  4174. "nameLocation": "end",
  4175. "nameGap": 15,
  4176. "nameTextStyle": {
  4177. "color": "#5470c6",
  4178. "fontWeight": "bold",
  4179. "fontSize": 16
  4180. },
  4181. "gridIndex": 0,
  4182. "axisLine": {
  4183. "show": true,
  4184. "onZero": true,
  4185. "onZeroAxisIndex": 0,
  4186. "lineStyle": {
  4187. "show": true,
  4188. "width": 2,
  4189. "opacity": 1,
  4190. "curveness": 0,
  4191. "type": "solid",
  4192. "color": "#5470c6"
  4193. }
  4194. },
  4195. "axisLabel": {
  4196. "show": true,
  4197. "color": "#5470c6",
  4198. "margin": 8,
  4199. "fontSize": 13
  4200. },
  4201. "inverse": false,
  4202. "offset": 0,
  4203. "splitNumber": 5,
  4204. "min": 19,
  4205. "max": 40,
  4206. "minInterval": 0,
  4207. "splitLine": {
  4208. "show": true,
  4209. "lineStyle": {
  4210. "show": true,
  4211. "width": 1,
  4212. "opacity": 1,
  4213. "curveness": 0,
  4214. "type": "dashed"
  4215. }
  4216. }
  4217. }
  4218. ],
  4219. "title": [
  4220. {
  4221. "show": true,
  4222. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  4223. "target": "blank",
  4224. "subtarget": "blank",
  4225. "left": "center",
  4226. "top": "2%",
  4227. "padding": 5,
  4228. "itemGap": 10,
  4229. "textAlign": "auto",
  4230. "textVerticalAlign": "auto",
  4231. "triggerEvent": false,
  4232. "textStyle": {
  4233. "color": "#DC143C",
  4234. "fontSize": 20
  4235. }
  4236. }
  4237. ],
  4238. "tooltip": {
  4239. "show": true,
  4240. "trigger": "axis",
  4241. "triggerOn": "mousemove|click",
  4242. "axisPointer": {
  4243. "type": "cross"
  4244. },
  4245. "showContent": true,
  4246. "alwaysShowContent": false,
  4247. "showDelay": 0,
  4248. "hideDelay": 100,
  4249. "enterable": false,
  4250. "confine": false,
  4251. "appendToBody": false,
  4252. "transitionDuration": 0.4,
  4253. "textStyle": {
  4254. "color": "#000"
  4255. },
  4256. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  4257. "borderColor": "#ccc",
  4258. "borderWidth": 1,
  4259. "padding": 5,
  4260. "order": "seriesAsc"
  4261. },
  4262. "color": [
  4263. "#5470c6",
  4264. "#91cc75",
  4265. "#fac858",
  4266. "#ee6666",
  4267. "#73c0de",
  4268. "#3ba272",
  4269. "#fc8452",
  4270. "#9a60b4",
  4271. "#ea7ccc"
  4272. ]
  4273. },
  4274. {
  4275. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  4276. "series": [
  4277. {
  4278. "type": "line",
  4279. "name": "广州",
  4280. "connectNulls": false,
  4281. "xAxisIndex": 0,
  4282. "symbolSize": 5,
  4283. "showSymbol": true,
  4284. "smooth": true,
  4285. "clip": true,
  4286. "step": false,
  4287. "data": [
  4288. [
  4289. 1,
  4290. 15.709677
  4291. ],
  4292. [
  4293. 2,
  4294. 12.232143
  4295. ],
  4296. [
  4297. 3,
  4298. 21.177419
  4299. ],
  4300. [
  4301. 4,
  4302. 22.533333
  4303. ],
  4304. [
  4305. 5,
  4306. 24.370968
  4307. ],
  4308. [
  4309. 6,
  4310. 28.000000
  4311. ],
  4312. [
  4313. 7,
  4314. 30.354839
  4315. ],
  4316. [
  4317. 8,
  4318. 29.000000
  4319. ]
  4320. ],
  4321. "hoverAnimation": true,
  4322. "label": {
  4323. "show": false,
  4324. "margin": 8
  4325. },
  4326. "logBase": 10,
  4327. "seriesLayoutBy": "column",
  4328. "lineStyle": {
  4329. "normal": {
  4330. "width": 4,
  4331. "shadowColor": "#696969",
  4332. "shadowBlur": 10,
  4333. "shadowOffsetY": 10,
  4334. "shadowOffsetX": 10
  4335. }
  4336. },
  4337. "areaStyle": {
  4338. "opacity": 0
  4339. },
  4340. "zlevel": 0,
  4341. "z": 0,
  4342. "rippleEffect": {
  4343. "show": true,
  4344. "brushType": "stroke",
  4345. "scale": 2.5,
  4346. "period": 4
  4347. }
  4348. },
  4349. {
  4350. "type": "line",
  4351. "name": "河源",
  4352. "connectNulls": false,
  4353. "xAxisIndex": 0,
  4354. "symbolSize": 5,
  4355. "showSymbol": true,
  4356. "smooth": true,
  4357. "clip": true,
  4358. "step": false,
  4359. "data": [
  4360. [
  4361. 1,
  4362. 15.080645
  4363. ],
  4364. [
  4365. 2,
  4366. 11.607143
  4367. ],
  4368. [
  4369. 3,
  4370. 21.096774
  4371. ],
  4372. [
  4373. 4,
  4374. 22.300000
  4375. ],
  4376. [
  4377. 5,
  4378. 23.887097
  4379. ],
  4380. [
  4381. 6,
  4382. 27.550000
  4383. ],
  4384. [
  4385. 7,
  4386. 30.419355
  4387. ],
  4388. [
  4389. 8,
  4390. 29.677419
  4391. ]
  4392. ],
  4393. "hoverAnimation": true,
  4394. "label": {
  4395. "show": false,
  4396. "margin": 8
  4397. },
  4398. "logBase": 10,
  4399. "seriesLayoutBy": "column",
  4400. "lineStyle": {
  4401. "normal": {
  4402. "width": 4,
  4403. "shadowColor": "#696969",
  4404. "shadowBlur": 10,
  4405. "shadowOffsetY": 10,
  4406. "shadowOffsetX": 10
  4407. }
  4408. },
  4409. "areaStyle": {
  4410. "opacity": 0
  4411. },
  4412. "zlevel": 0,
  4413. "z": 0,
  4414. "rippleEffect": {
  4415. "show": true,
  4416. "brushType": "stroke",
  4417. "scale": 2.5,
  4418. "period": 4
  4419. }
  4420. },
  4421. {
  4422. "type": "line",
  4423. "name": "惠州",
  4424. "connectNulls": false,
  4425. "xAxisIndex": 0,
  4426. "symbolSize": 5,
  4427. "showSymbol": true,
  4428. "smooth": true,
  4429. "clip": true,
  4430. "step": false,
  4431. "data": [
  4432. [
  4433. 1,
  4434. 17.290323
  4435. ],
  4436. [
  4437. 2,
  4438. 14.035714
  4439. ],
  4440. [
  4441. 3,
  4442. 21.677419
  4443. ],
  4444. [
  4445. 4,
  4446. 22.750000
  4447. ],
  4448. [
  4449. 5,
  4450. 24.774194
  4451. ],
  4452. [
  4453. 6,
  4454. 28.050000
  4455. ],
  4456. [
  4457. 7,
  4458. 29.306452
  4459. ],
  4460. [
  4461. 8,
  4462. 28.177419
  4463. ]
  4464. ],
  4465. "hoverAnimation": true,
  4466. "label": {
  4467. "show": false,
  4468. "margin": 8
  4469. },
  4470. "logBase": 10,
  4471. "seriesLayoutBy": "column",
  4472. "lineStyle": {
  4473. "normal": {
  4474. "width": 4,
  4475. "shadowColor": "#696969",
  4476. "shadowBlur": 10,
  4477. "shadowOffsetY": 10,
  4478. "shadowOffsetX": 10
  4479. }
  4480. },
  4481. "areaStyle": {
  4482. "opacity": 0
  4483. },
  4484. "zlevel": 0,
  4485. "z": 0,
  4486. "rippleEffect": {
  4487. "show": true,
  4488. "brushType": "stroke",
  4489. "scale": 2.5,
  4490. "period": 4
  4491. }
  4492. },
  4493. {
  4494. "type": "line",
  4495. "name": "深圳",
  4496. "connectNulls": false,
  4497. "xAxisIndex": 0,
  4498. "symbolSize": 5,
  4499. "showSymbol": true,
  4500. "smooth": true,
  4501. "clip": true,
  4502. "step": false,
  4503. "data": [
  4504. [
  4505. 1,
  4506. 17.580645
  4507. ],
  4508. [
  4509. 2,
  4510. 14.232143
  4511. ],
  4512. [
  4513. 3,
  4514. 21.596774
  4515. ],
  4516. [
  4517. 4,
  4518. 23.466667
  4519. ],
  4520. [
  4521. 5,
  4522. 25.064516
  4523. ],
  4524. [
  4525. 6,
  4526. 28.166667
  4527. ],
  4528. [
  4529. 7,
  4530. 30.016129
  4531. ],
  4532. [
  4533. 8,
  4534. 29.145161
  4535. ]
  4536. ],
  4537. "hoverAnimation": true,
  4538. "label": {
  4539. "show": false,
  4540. "margin": 8
  4541. },
  4542. "logBase": 10,
  4543. "seriesLayoutBy": "column",
  4544. "lineStyle": {
  4545. "normal": {
  4546. "width": 4,
  4547. "shadowColor": "#696969",
  4548. "shadowBlur": 10,
  4549. "shadowOffsetY": 10,
  4550. "shadowOffsetX": 10
  4551. }
  4552. },
  4553. "areaStyle": {
  4554. "opacity": 0
  4555. },
  4556. "zlevel": 0,
  4557. "z": 0,
  4558. "rippleEffect": {
  4559. "show": true,
  4560. "brushType": "stroke",
  4561. "scale": 2.5,
  4562. "period": 4
  4563. }
  4564. }
  4565. ],
  4566. "xAxis": [
  4567. {
  4568. "type": "category",
  4569. "show": true,
  4570. "scale": false,
  4571. "nameLocation": "end",
  4572. "nameGap": 15,
  4573. "gridIndex": 0,
  4574. "axisLine": {
  4575. "show": true,
  4576. "onZero": true,
  4577. "onZeroAxisIndex": 0,
  4578. "lineStyle": {
  4579. "show": true,
  4580. "width": 2,
  4581. "opacity": 1,
  4582. "curveness": 0,
  4583. "type": "solid",
  4584. "color": "#DB7093"
  4585. }
  4586. },
  4587. "axisLabel": {
  4588. "show": true,
  4589. "color": "red",
  4590. "margin": 8,
  4591. "fontSize": 14
  4592. },
  4593. "inverse": false,
  4594. "offset": 0,
  4595. "splitNumber": 5,
  4596. "boundaryGap": false,
  4597. "minInterval": 0,
  4598. "splitLine": {
  4599. "show": true,
  4600. "lineStyle": {
  4601. "show": true,
  4602. "width": 1,
  4603. "opacity": 1,
  4604. "curveness": 0,
  4605. "type": "solid"
  4606. }
  4607. },
  4608. "data": [
  4609. 1,
  4610. 2,
  4611. 3,
  4612. 4,
  4613. 5,
  4614. 6,
  4615. 7,
  4616. 8,
  4617. 9,
  4618. 10,
  4619. 11,
  4620. 12
  4621. ]
  4622. }
  4623. ],
  4624. "yAxis": [
  4625. {
  4626. "name": "平均温度",
  4627. "show": true,
  4628. "scale": true,
  4629. "nameLocation": "end",
  4630. "nameGap": 15,
  4631. "nameTextStyle": {
  4632. "color": "#5470c6",
  4633. "fontWeight": "bold",
  4634. "fontSize": 16
  4635. },
  4636. "gridIndex": 0,
  4637. "axisLine": {
  4638. "show": true,
  4639. "onZero": true,
  4640. "onZeroAxisIndex": 0,
  4641. "lineStyle": {
  4642. "show": true,
  4643. "width": 2,
  4644. "opacity": 1,
  4645. "curveness": 0,
  4646. "type": "solid",
  4647. "color": "#5470c6"
  4648. }
  4649. },
  4650. "axisLabel": {
  4651. "show": true,
  4652. "color": "#5470c6",
  4653. "margin": 8,
  4654. "fontSize": 13
  4655. },
  4656. "inverse": false,
  4657. "offset": 0,
  4658. "splitNumber": 5,
  4659. "min": 18,
  4660. "max": 39,
  4661. "minInterval": 0,
  4662. "splitLine": {
  4663. "show": true,
  4664. "lineStyle": {
  4665. "show": true,
  4666. "width": 1,
  4667. "opacity": 1,
  4668. "curveness": 0,
  4669. "type": "dashed"
  4670. }
  4671. }
  4672. }
  4673. ],
  4674. "title": [
  4675. {
  4676. "show": true,
  4677. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  4678. "target": "blank",
  4679. "subtarget": "blank",
  4680. "left": "center",
  4681. "top": "2%",
  4682. "padding": 5,
  4683. "itemGap": 10,
  4684. "textAlign": "auto",
  4685. "textVerticalAlign": "auto",
  4686. "triggerEvent": false,
  4687. "textStyle": {
  4688. "color": "#DC143C",
  4689. "fontSize": 20
  4690. }
  4691. }
  4692. ],
  4693. "tooltip": {
  4694. "show": true,
  4695. "trigger": "axis",
  4696. "triggerOn": "mousemove|click",
  4697. "axisPointer": {
  4698. "type": "cross"
  4699. },
  4700. "showContent": true,
  4701. "alwaysShowContent": false,
  4702. "showDelay": 0,
  4703. "hideDelay": 100,
  4704. "enterable": false,
  4705. "confine": false,
  4706. "appendToBody": false,
  4707. "transitionDuration": 0.4,
  4708. "textStyle": {
  4709. "color": "#000"
  4710. },
  4711. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  4712. "borderColor": "#ccc",
  4713. "borderWidth": 1,
  4714. "padding": 5,
  4715. "order": "seriesAsc"
  4716. },
  4717. "color": [
  4718. "#5470c6",
  4719. "#91cc75",
  4720. "#fac858",
  4721. "#ee6666",
  4722. "#73c0de",
  4723. "#3ba272",
  4724. "#fc8452",
  4725. "#9a60b4",
  4726. "#ea7ccc"
  4727. ]
  4728. },
  4729. {
  4730. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  4731. "series": [
  4732. {
  4733. "type": "line",
  4734. "name": "广州",
  4735. "connectNulls": false,
  4736. "xAxisIndex": 0,
  4737. "symbolSize": 5,
  4738. "showSymbol": true,
  4739. "smooth": true,
  4740. "clip": true,
  4741. "step": false,
  4742. "data": [
  4743. [
  4744. 1,
  4745. 15.709677
  4746. ],
  4747. [
  4748. 2,
  4749. 12.232143
  4750. ],
  4751. [
  4752. 3,
  4753. 21.177419
  4754. ],
  4755. [
  4756. 4,
  4757. 22.533333
  4758. ],
  4759. [
  4760. 5,
  4761. 24.370968
  4762. ],
  4763. [
  4764. 6,
  4765. 28.000000
  4766. ],
  4767. [
  4768. 7,
  4769. 30.354839
  4770. ],
  4771. [
  4772. 8,
  4773. 29.000000
  4774. ],
  4775. [
  4776. 9,
  4777. 28.866667
  4778. ]
  4779. ],
  4780. "hoverAnimation": true,
  4781. "label": {
  4782. "show": false,
  4783. "margin": 8
  4784. },
  4785. "logBase": 10,
  4786. "seriesLayoutBy": "column",
  4787. "lineStyle": {
  4788. "normal": {
  4789. "width": 4,
  4790. "shadowColor": "#696969",
  4791. "shadowBlur": 10,
  4792. "shadowOffsetY": 10,
  4793. "shadowOffsetX": 10
  4794. }
  4795. },
  4796. "areaStyle": {
  4797. "opacity": 0
  4798. },
  4799. "zlevel": 0,
  4800. "z": 0,
  4801. "rippleEffect": {
  4802. "show": true,
  4803. "brushType": "stroke",
  4804. "scale": 2.5,
  4805. "period": 4
  4806. }
  4807. },
  4808. {
  4809. "type": "line",
  4810. "name": "河源",
  4811. "connectNulls": false,
  4812. "xAxisIndex": 0,
  4813. "symbolSize": 5,
  4814. "showSymbol": true,
  4815. "smooth": true,
  4816. "clip": true,
  4817. "step": false,
  4818. "data": [
  4819. [
  4820. 1,
  4821. 15.080645
  4822. ],
  4823. [
  4824. 2,
  4825. 11.607143
  4826. ],
  4827. [
  4828. 3,
  4829. 21.096774
  4830. ],
  4831. [
  4832. 4,
  4833. 22.300000
  4834. ],
  4835. [
  4836. 5,
  4837. 23.887097
  4838. ],
  4839. [
  4840. 6,
  4841. 27.550000
  4842. ],
  4843. [
  4844. 7,
  4845. 30.419355
  4846. ],
  4847. [
  4848. 8,
  4849. 29.677419
  4850. ],
  4851. [
  4852. 9,
  4853. 29.216667
  4854. ]
  4855. ],
  4856. "hoverAnimation": true,
  4857. "label": {
  4858. "show": false,
  4859. "margin": 8
  4860. },
  4861. "logBase": 10,
  4862. "seriesLayoutBy": "column",
  4863. "lineStyle": {
  4864. "normal": {
  4865. "width": 4,
  4866. "shadowColor": "#696969",
  4867. "shadowBlur": 10,
  4868. "shadowOffsetY": 10,
  4869. "shadowOffsetX": 10
  4870. }
  4871. },
  4872. "areaStyle": {
  4873. "opacity": 0
  4874. },
  4875. "zlevel": 0,
  4876. "z": 0,
  4877. "rippleEffect": {
  4878. "show": true,
  4879. "brushType": "stroke",
  4880. "scale": 2.5,
  4881. "period": 4
  4882. }
  4883. },
  4884. {
  4885. "type": "line",
  4886. "name": "惠州",
  4887. "connectNulls": false,
  4888. "xAxisIndex": 0,
  4889. "symbolSize": 5,
  4890. "showSymbol": true,
  4891. "smooth": true,
  4892. "clip": true,
  4893. "step": false,
  4894. "data": [
  4895. [
  4896. 1,
  4897. 17.290323
  4898. ],
  4899. [
  4900. 2,
  4901. 14.035714
  4902. ],
  4903. [
  4904. 3,
  4905. 21.677419
  4906. ],
  4907. [
  4908. 4,
  4909. 22.750000
  4910. ],
  4911. [
  4912. 5,
  4913. 24.774194
  4914. ],
  4915. [
  4916. 6,
  4917. 28.050000
  4918. ],
  4919. [
  4920. 7,
  4921. 29.306452
  4922. ],
  4923. [
  4924. 8,
  4925. 28.177419
  4926. ],
  4927. [
  4928. 9,
  4929. 28.416667
  4930. ]
  4931. ],
  4932. "hoverAnimation": true,
  4933. "label": {
  4934. "show": false,
  4935. "margin": 8
  4936. },
  4937. "logBase": 10,
  4938. "seriesLayoutBy": "column",
  4939. "lineStyle": {
  4940. "normal": {
  4941. "width": 4,
  4942. "shadowColor": "#696969",
  4943. "shadowBlur": 10,
  4944. "shadowOffsetY": 10,
  4945. "shadowOffsetX": 10
  4946. }
  4947. },
  4948. "areaStyle": {
  4949. "opacity": 0
  4950. },
  4951. "zlevel": 0,
  4952. "z": 0,
  4953. "rippleEffect": {
  4954. "show": true,
  4955. "brushType": "stroke",
  4956. "scale": 2.5,
  4957. "period": 4
  4958. }
  4959. },
  4960. {
  4961. "type": "line",
  4962. "name": "深圳",
  4963. "connectNulls": false,
  4964. "xAxisIndex": 0,
  4965. "symbolSize": 5,
  4966. "showSymbol": true,
  4967. "smooth": true,
  4968. "clip": true,
  4969. "step": false,
  4970. "data": [
  4971. [
  4972. 1,
  4973. 17.580645
  4974. ],
  4975. [
  4976. 2,
  4977. 14.232143
  4978. ],
  4979. [
  4980. 3,
  4981. 21.596774
  4982. ],
  4983. [
  4984. 4,
  4985. 23.466667
  4986. ],
  4987. [
  4988. 5,
  4989. 25.064516
  4990. ],
  4991. [
  4992. 6,
  4993. 28.166667
  4994. ],
  4995. [
  4996. 7,
  4997. 30.016129
  4998. ],
  4999. [
  5000. 8,
  5001. 29.145161
  5002. ],
  5003. [
  5004. 9,
  5005. 29.400000
  5006. ]
  5007. ],
  5008. "hoverAnimation": true,
  5009. "label": {
  5010. "show": false,
  5011. "margin": 8
  5012. },
  5013. "logBase": 10,
  5014. "seriesLayoutBy": "column",
  5015. "lineStyle": {
  5016. "normal": {
  5017. "width": 4,
  5018. "shadowColor": "#696969",
  5019. "shadowBlur": 10,
  5020. "shadowOffsetY": 10,
  5021. "shadowOffsetX": 10
  5022. }
  5023. },
  5024. "areaStyle": {
  5025. "opacity": 0
  5026. },
  5027. "zlevel": 0,
  5028. "z": 0,
  5029. "rippleEffect": {
  5030. "show": true,
  5031. "brushType": "stroke",
  5032. "scale": 2.5,
  5033. "period": 4
  5034. }
  5035. },
  5036. ],
  5037. "xAxis": [
  5038. {
  5039. "type": "category",
  5040. "show": true,
  5041. "scale": false,
  5042. "nameLocation": "end",
  5043. "nameGap": 15,
  5044. "gridIndex": 0,
  5045. "axisLine": {
  5046. "show": true,
  5047. "onZero": true,
  5048. "onZeroAxisIndex": 0,
  5049. "lineStyle": {
  5050. "show": true,
  5051. "width": 2,
  5052. "opacity": 1,
  5053. "curveness": 0,
  5054. "type": "solid",
  5055. "color": "#DB7093"
  5056. }
  5057. },
  5058. "axisLabel": {
  5059. "show": true,
  5060. "color": "red",
  5061. "margin": 8,
  5062. "fontSize": 14
  5063. },
  5064. "inverse": false,
  5065. "offset": 0,
  5066. "splitNumber": 5,
  5067. "boundaryGap": false,
  5068. "minInterval": 0,
  5069. "splitLine": {
  5070. "show": true,
  5071. "lineStyle": {
  5072. "show": true,
  5073. "width": 1,
  5074. "opacity": 1,
  5075. "curveness": 0,
  5076. "type": "solid"
  5077. }
  5078. },
  5079. "data": [
  5080. 1,
  5081. 2,
  5082. 3,
  5083. 4,
  5084. 5,
  5085. 6,
  5086. 7,
  5087. 8,
  5088. 9,
  5089. 10,
  5090. 11,
  5091. 12
  5092. ]
  5093. }
  5094. ],
  5095. "yAxis": [
  5096. {
  5097. "name": "平均温度",
  5098. "show": true,
  5099. "scale": true,
  5100. "nameLocation": "end",
  5101. "nameGap": 15,
  5102. "nameTextStyle": {
  5103. "color": "#5470c6",
  5104. "fontWeight": "bold",
  5105. "fontSize": 16
  5106. },
  5107. "gridIndex": 0,
  5108. "axisLine": {
  5109. "show": true,
  5110. "onZero": true,
  5111. "onZeroAxisIndex": 0,
  5112. "lineStyle": {
  5113. "show": true,
  5114. "width": 2,
  5115. "opacity": 1,
  5116. "curveness": 0,
  5117. "type": "solid",
  5118. "color": "#5470c6"
  5119. }
  5120. },
  5121. "axisLabel": {
  5122. "show": true,
  5123. "color": "#5470c6",
  5124. "margin": 8,
  5125. "fontSize": 13
  5126. },
  5127. "inverse": false,
  5128. "offset": 0,
  5129. "splitNumber": 5,
  5130. "min": 17,
  5131. "max": 38,
  5132. "minInterval": 0,
  5133. "splitLine": {
  5134. "show": true,
  5135. "lineStyle": {
  5136. "show": true,
  5137. "width": 1,
  5138. "opacity": 1,
  5139. "curveness": 0,
  5140. "type": "dashed"
  5141. }
  5142. }
  5143. }
  5144. ],
  5145. "title": [
  5146. {
  5147. "show": true,
  5148. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  5149. "target": "blank",
  5150. "subtarget": "blank",
  5151. "left": "center",
  5152. "top": "2%",
  5153. "padding": 5,
  5154. "itemGap": 10,
  5155. "textAlign": "auto",
  5156. "textVerticalAlign": "auto",
  5157. "triggerEvent": false,
  5158. "textStyle": {
  5159. "color": "#DC143C",
  5160. "fontSize": 20
  5161. }
  5162. }
  5163. ],
  5164. "tooltip": {
  5165. "show": true,
  5166. "trigger": "axis",
  5167. "triggerOn": "mousemove|click",
  5168. "axisPointer": {
  5169. "type": "cross"
  5170. },
  5171. "showContent": true,
  5172. "alwaysShowContent": false,
  5173. "showDelay": 0,
  5174. "hideDelay": 100,
  5175. "enterable": false,
  5176. "confine": false,
  5177. "appendToBody": false,
  5178. "transitionDuration": 0.4,
  5179. "textStyle": {
  5180. "color": "#000"
  5181. },
  5182. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  5183. "borderColor": "#ccc",
  5184. "borderWidth": 1,
  5185. "padding": 5,
  5186. "order": "seriesAsc"
  5187. },
  5188. "color": [
  5189. "#5470c6",
  5190. "#91cc75",
  5191. "#fac858",
  5192. "#ee6666",
  5193. "#73c0de",
  5194. "#3ba272",
  5195. "#fc8452",
  5196. "#9a60b4",
  5197. "#ea7ccc"
  5198. ]
  5199. },
  5200. {
  5201. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  5202. "series": [
  5203. {
  5204. "type": "line",
  5205. "name": "广州",
  5206. "connectNulls": false,
  5207. "xAxisIndex": 0,
  5208. "symbolSize": 5,
  5209. "showSymbol": true,
  5210. "smooth": true,
  5211. "clip": true,
  5212. "step": false,
  5213. "data": [
  5214. [
  5215. 1,
  5216. 15.709677
  5217. ],
  5218. [
  5219. 2,
  5220. 12.232143
  5221. ],
  5222. [
  5223. 3,
  5224. 21.177419
  5225. ],
  5226. [
  5227. 4,
  5228. 22.533333
  5229. ],
  5230. [
  5231. 5,
  5232. 24.370968
  5233. ],
  5234. [
  5235. 6,
  5236. 28.000000
  5237. ],
  5238. [
  5239. 7,
  5240. 30.354839
  5241. ],
  5242. [
  5243. 8,
  5244. 29.000000
  5245. ],
  5246. [
  5247. 9,
  5248. 28.866667
  5249. ],
  5250. [
  5251. 10,
  5252. 24.903226
  5253. ]
  5254. ],
  5255. "hoverAnimation": true,
  5256. "label": {
  5257. "show": false,
  5258. "margin": 8
  5259. },
  5260. "logBase": 10,
  5261. "seriesLayoutBy": "column",
  5262. "lineStyle": {
  5263. "normal": {
  5264. "width": 4,
  5265. "shadowColor": "#696969",
  5266. "shadowBlur": 10,
  5267. "shadowOffsetY": 10,
  5268. "shadowOffsetX": 10
  5269. }
  5270. },
  5271. "areaStyle": {
  5272. "opacity": 0
  5273. },
  5274. "zlevel": 0,
  5275. "z": 0,
  5276. "rippleEffect": {
  5277. "show": true,
  5278. "brushType": "stroke",
  5279. "scale": 2.5,
  5280. "period": 4
  5281. }
  5282. },
  5283. {
  5284. "type": "line",
  5285. "name": "河源",
  5286. "connectNulls": false,
  5287. "xAxisIndex": 0,
  5288. "symbolSize": 5,
  5289. "showSymbol": true,
  5290. "smooth": true,
  5291. "clip": true,
  5292. "step": false,
  5293. "data": [
  5294. [
  5295. 1,
  5296. 15.080645
  5297. ],
  5298. [
  5299. 2,
  5300. 11.607143
  5301. ],
  5302. [
  5303. 3,
  5304. 21.096774
  5305. ],
  5306. [
  5307. 4,
  5308. 22.300000
  5309. ],
  5310. [
  5311. 5,
  5312. 23.887097
  5313. ],
  5314. [
  5315. 6,
  5316. 27.550000
  5317. ],
  5318. [
  5319. 7,
  5320. 30.419355
  5321. ],
  5322. [
  5323. 8,
  5324. 29.677419
  5325. ],
  5326. [
  5327. 9,
  5328. 29.216667
  5329. ],
  5330. [
  5331. 10,
  5332. 24.983871
  5333. ]
  5334. ],
  5335. "hoverAnimation": true,
  5336. "label": {
  5337. "show": false,
  5338. "margin": 8
  5339. },
  5340. "logBase": 10,
  5341. "seriesLayoutBy": "column",
  5342. "lineStyle": {
  5343. "normal": {
  5344. "width": 4,
  5345. "shadowColor": "#696969",
  5346. "shadowBlur": 10,
  5347. "shadowOffsetY": 10,
  5348. "shadowOffsetX": 10
  5349. }
  5350. },
  5351. "areaStyle": {
  5352. "opacity": 0
  5353. },
  5354. "zlevel": 0,
  5355. "z": 0,
  5356. "rippleEffect": {
  5357. "show": true,
  5358. "brushType": "stroke",
  5359. "scale": 2.5,
  5360. "period": 4
  5361. }
  5362. },
  5363. {
  5364. "type": "line",
  5365. "name": "惠州",
  5366. "connectNulls": false,
  5367. "xAxisIndex": 0,
  5368. "symbolSize": 5,
  5369. "showSymbol": true,
  5370. "smooth": true,
  5371. "clip": true,
  5372. "step": false,
  5373. "data": [
  5374. [
  5375. 1,
  5376. 17.290323
  5377. ],
  5378. [
  5379. 2,
  5380. 14.035714
  5381. ],
  5382. [
  5383. 3,
  5384. 21.677419
  5385. ],
  5386. [
  5387. 4,
  5388. 22.750000
  5389. ],
  5390. [
  5391. 5,
  5392. 24.774194
  5393. ],
  5394. [
  5395. 6,
  5396. 28.050000
  5397. ],
  5398. [
  5399. 7,
  5400. 29.306452
  5401. ],
  5402. [
  5403. 8,
  5404. 28.177419
  5405. ],
  5406. [
  5407. 9,
  5408. 28.416667
  5409. ],
  5410. [
  5411. 10,
  5412. 24.870968
  5413. ]
  5414. ],
  5415. "hoverAnimation": true,
  5416. "label": {
  5417. "show": false,
  5418. "margin": 8
  5419. },
  5420. "logBase": 10,
  5421. "seriesLayoutBy": "column",
  5422. "lineStyle": {
  5423. "normal": {
  5424. "width": 4,
  5425. "shadowColor": "#696969",
  5426. "shadowBlur": 10,
  5427. "shadowOffsetY": 10,
  5428. "shadowOffsetX": 10
  5429. }
  5430. },
  5431. "areaStyle": {
  5432. "opacity": 0
  5433. },
  5434. "zlevel": 0,
  5435. "z": 0,
  5436. "rippleEffect": {
  5437. "show": true,
  5438. "brushType": "stroke",
  5439. "scale": 2.5,
  5440. "period": 4
  5441. }
  5442. },
  5443. {
  5444. "type": "line",
  5445. "name": "深圳",
  5446. "connectNulls": false,
  5447. "xAxisIndex": 0,
  5448. "symbolSize": 5,
  5449. "showSymbol": true,
  5450. "smooth": true,
  5451. "clip": true,
  5452. "step": false,
  5453. "data": [
  5454. [
  5455. 1,
  5456. 17.580645
  5457. ],
  5458. [
  5459. 2,
  5460. 14.232143
  5461. ],
  5462. [
  5463. 3,
  5464. 21.596774
  5465. ],
  5466. [
  5467. 4,
  5468. 23.466667
  5469. ],
  5470. [
  5471. 5,
  5472. 25.064516
  5473. ],
  5474. [
  5475. 6,
  5476. 28.166667
  5477. ],
  5478. [
  5479. 7,
  5480. 30.016129
  5481. ],
  5482. [
  5483. 8,
  5484. 29.145161
  5485. ],
  5486. [
  5487. 9,
  5488. 289.400000
  5489. ],
  5490. [
  5491. 10,
  5492. 25.725806
  5493. ]
  5494. ],
  5495. "hoverAnimation": true,
  5496. "label": {
  5497. "show": false,
  5498. "margin": 8
  5499. },
  5500. "logBase": 10,
  5501. "seriesLayoutBy": "column",
  5502. "lineStyle": {
  5503. "normal": {
  5504. "width": 4,
  5505. "shadowColor": "#696969",
  5506. "shadowBlur": 10,
  5507. "shadowOffsetY": 10,
  5508. "shadowOffsetX": 10
  5509. }
  5510. },
  5511. "areaStyle": {
  5512. "opacity": 0
  5513. },
  5514. "zlevel": 0,
  5515. "z": 0,
  5516. "rippleEffect": {
  5517. "show": true,
  5518. "brushType": "stroke",
  5519. "scale": 2.5,
  5520. "period": 4
  5521. }
  5522. },
  5523. ],
  5524. "xAxis": [
  5525. {
  5526. "type": "category",
  5527. "show": true,
  5528. "scale": false,
  5529. "nameLocation": "end",
  5530. "nameGap": 15,
  5531. "gridIndex": 0,
  5532. "axisLine": {
  5533. "show": true,
  5534. "onZero": true,
  5535. "onZeroAxisIndex": 0,
  5536. "lineStyle": {
  5537. "show": true,
  5538. "width": 2,
  5539. "opacity": 1,
  5540. "curveness": 0,
  5541. "type": "solid",
  5542. "color": "#DB7093"
  5543. }
  5544. },
  5545. "axisLabel": {
  5546. "show": true,
  5547. "color": "red",
  5548. "margin": 8,
  5549. "fontSize": 14
  5550. },
  5551. "inverse": false,
  5552. "offset": 0,
  5553. "splitNumber": 5,
  5554. "boundaryGap": false,
  5555. "minInterval": 0,
  5556. "splitLine": {
  5557. "show": true,
  5558. "lineStyle": {
  5559. "show": true,
  5560. "width": 1,
  5561. "opacity": 1,
  5562. "curveness": 0,
  5563. "type": "solid"
  5564. }
  5565. },
  5566. "data": [
  5567. 1,
  5568. 2,
  5569. 3,
  5570. 4,
  5571. 5,
  5572. 6,
  5573. 7,
  5574. 8,
  5575. 9,
  5576. 10,
  5577. 11,
  5578. 12
  5579. ]
  5580. }
  5581. ],
  5582. "yAxis": [
  5583. {
  5584. "name": "平均温度",
  5585. "show": true,
  5586. "scale": true,
  5587. "nameLocation": "end",
  5588. "nameGap": 15,
  5589. "nameTextStyle": {
  5590. "color": "#5470c6",
  5591. "fontWeight": "bold",
  5592. "fontSize": 16
  5593. },
  5594. "gridIndex": 0,
  5595. "axisLine": {
  5596. "show": true,
  5597. "onZero": true,
  5598. "onZeroAxisIndex": 0,
  5599. "lineStyle": {
  5600. "show": true,
  5601. "width": 2,
  5602. "opacity": 1,
  5603. "curveness": 0,
  5604. "type": "solid",
  5605. "color": "#5470c6"
  5606. }
  5607. },
  5608. "axisLabel": {
  5609. "show": true,
  5610. "color": "#5470c6",
  5611. "margin": 8,
  5612. "fontSize": 13
  5613. },
  5614. "inverse": false,
  5615. "offset": 0,
  5616. "splitNumber": 5,
  5617. "min": 14,
  5618. "max": 34,
  5619. "minInterval": 0,
  5620. "splitLine": {
  5621. "show": true,
  5622. "lineStyle": {
  5623. "show": true,
  5624. "width": 1,
  5625. "opacity": 1,
  5626. "curveness": 0,
  5627. "type": "dashed"
  5628. }
  5629. }
  5630. }
  5631. ],
  5632. "title": [
  5633. {
  5634. "show": true,
  5635. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  5636. "target": "blank",
  5637. "subtarget": "blank",
  5638. "left": "center",
  5639. "top": "2%",
  5640. "padding": 5,
  5641. "itemGap": 10,
  5642. "textAlign": "auto",
  5643. "textVerticalAlign": "auto",
  5644. "triggerEvent": false,
  5645. "textStyle": {
  5646. "color": "#DC143C",
  5647. "fontSize": 20
  5648. }
  5649. }
  5650. ],
  5651. "tooltip": {
  5652. "show": true,
  5653. "trigger": "axis",
  5654. "triggerOn": "mousemove|click",
  5655. "axisPointer": {
  5656. "type": "cross"
  5657. },
  5658. "showContent": true,
  5659. "alwaysShowContent": false,
  5660. "showDelay": 0,
  5661. "hideDelay": 100,
  5662. "enterable": false,
  5663. "confine": false,
  5664. "appendToBody": false,
  5665. "transitionDuration": 0.4,
  5666. "textStyle": {
  5667. "color": "#000"
  5668. },
  5669. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  5670. "borderColor": "#ccc",
  5671. "borderWidth": 1,
  5672. "padding": 5,
  5673. "order": "seriesAsc"
  5674. },
  5675. "color": [
  5676. "#5470c6",
  5677. "#91cc75",
  5678. "#fac858",
  5679. "#ee6666",
  5680. "#73c0de",
  5681. "#3ba272",
  5682. "#fc8452",
  5683. "#9a60b4",
  5684. "#ea7ccc"
  5685. ]
  5686. },
  5687. {
  5688. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  5689. "series": [
  5690. {
  5691. "type": "line",
  5692. "name": "广州",
  5693. "connectNulls": false,
  5694. "xAxisIndex": 0,
  5695. "symbolSize": 5,
  5696. "showSymbol": true,
  5697. "smooth": true,
  5698. "clip": true,
  5699. "step": false,
  5700. "data": [
  5701. [
  5702. 1,
  5703. 15.709677
  5704. ],
  5705. [
  5706. 2,
  5707. 12.232143
  5708. ],
  5709. [
  5710. 3,
  5711. 21.177419
  5712. ],
  5713. [
  5714. 4,
  5715. 22.533333
  5716. ],
  5717. [
  5718. 5,
  5719. 24.370968
  5720. ],
  5721. [
  5722. 6,
  5723. 28.000000
  5724. ],
  5725. [
  5726. 7,
  5727. 30.354839
  5728. ],
  5729. [
  5730. 8,
  5731. 29.000000
  5732. ],
  5733. [
  5734. 9,
  5735. 28.866667
  5736. ],
  5737. [
  5738. 10,
  5739. 24.903226
  5740. ],
  5741. [
  5742. 11,
  5743. 21.783333
  5744. ]
  5745. ],
  5746. "hoverAnimation": true,
  5747. "label": {
  5748. "show": false,
  5749. "margin": 8
  5750. },
  5751. "logBase": 10,
  5752. "seriesLayoutBy": "column",
  5753. "lineStyle": {
  5754. "normal": {
  5755. "width": 4,
  5756. "shadowColor": "#696969",
  5757. "shadowBlur": 10,
  5758. "shadowOffsetY": 10,
  5759. "shadowOffsetX": 10
  5760. }
  5761. },
  5762. "areaStyle": {
  5763. "opacity": 0
  5764. },
  5765. "zlevel": 0,
  5766. "z": 0,
  5767. "rippleEffect": {
  5768. "show": true,
  5769. "brushType": "stroke",
  5770. "scale": 2.5,
  5771. "period": 4
  5772. }
  5773. },
  5774. {
  5775. "type": "line",
  5776. "name": "河源",
  5777. "connectNulls": false,
  5778. "xAxisIndex": 0,
  5779. "symbolSize": 5,
  5780. "showSymbol": true,
  5781. "smooth": true,
  5782. "clip": true,
  5783. "step": false,
  5784. "data": [
  5785. [
  5786. 1,
  5787. 15.080645
  5788. ],
  5789. [
  5790. 2,
  5791. 11.607143
  5792. ],
  5793. [
  5794. 3,
  5795. 21.096774
  5796. ],
  5797. [
  5798. 4,
  5799. 22.300000
  5800. ],
  5801. [
  5802. 5,
  5803. 23.887097
  5804. ],
  5805. [
  5806. 6,
  5807. 27.550000
  5808. ],
  5809. [
  5810. 7,
  5811. 30.419355
  5812. ],
  5813. [
  5814. 8,
  5815. 29.677419
  5816. ],
  5817. [
  5818. 9,
  5819. 29.216667
  5820. ],
  5821. [
  5822. 10,
  5823. 24.983871
  5824. ],
  5825. [
  5826. 11,
  5827. 21.933333
  5828. ]
  5829. ],
  5830. "hoverAnimation": true,
  5831. "label": {
  5832. "show": false,
  5833. "margin": 8
  5834. },
  5835. "logBase": 10,
  5836. "seriesLayoutBy": "column",
  5837. "lineStyle": {
  5838. "normal": {
  5839. "width": 4,
  5840. "shadowColor": "#696969",
  5841. "shadowBlur": 10,
  5842. "shadowOffsetY": 10,
  5843. "shadowOffsetX": 10
  5844. }
  5845. },
  5846. "areaStyle": {
  5847. "opacity": 0
  5848. },
  5849. "zlevel": 0,
  5850. "z": 0,
  5851. "rippleEffect": {
  5852. "show": true,
  5853. "brushType": "stroke",
  5854. "scale": 2.5,
  5855. "period": 4
  5856. }
  5857. },
  5858. {
  5859. "type": "line",
  5860. "name": "惠州",
  5861. "connectNulls": false,
  5862. "xAxisIndex": 0,
  5863. "symbolSize": 5,
  5864. "showSymbol": true,
  5865. "smooth": true,
  5866. "clip": true,
  5867. "step": false,
  5868. "data": [
  5869. [
  5870. 1,
  5871. 17.290323
  5872. ],
  5873. [
  5874. 2,
  5875. 14.035714
  5876. ],
  5877. [
  5878. 3,
  5879. 21.677419
  5880. ],
  5881. [
  5882. 4,
  5883. 22.750000
  5884. ],
  5885. [
  5886. 5,
  5887. 24.774194
  5888. ],
  5889. [
  5890. 6,
  5891. 28.050000
  5892. ],
  5893. [
  5894. 7,
  5895. 29.306452
  5896. ],
  5897. [
  5898. 8,
  5899. 28.177419
  5900. ],
  5901. [
  5902. 9,
  5903. 28.416667
  5904. ],
  5905. [
  5906. 10,
  5907. 24.870968
  5908. ],
  5909. [
  5910. 11,
  5911. 22.783333
  5912. ]
  5913. ],
  5914. "hoverAnimation": true,
  5915. "label": {
  5916. "show": false,
  5917. "margin": 8
  5918. },
  5919. "logBase": 10,
  5920. "seriesLayoutBy": "column",
  5921. "lineStyle": {
  5922. "normal": {
  5923. "width": 4,
  5924. "shadowColor": "#696969",
  5925. "shadowBlur": 10,
  5926. "shadowOffsetY": 10,
  5927. "shadowOffsetX": 10
  5928. }
  5929. },
  5930. "areaStyle": {
  5931. "opacity": 0
  5932. },
  5933. "zlevel": 0,
  5934. "z": 0,
  5935. "rippleEffect": {
  5936. "show": true,
  5937. "brushType": "stroke",
  5938. "scale": 2.5,
  5939. "period": 4
  5940. }
  5941. },
  5942. {
  5943. "type": "line",
  5944. "name": "深圳",
  5945. "connectNulls": false,
  5946. "xAxisIndex": 0,
  5947. "symbolSize": 5,
  5948. "showSymbol": true,
  5949. "smooth": true,
  5950. "clip": true,
  5951. "step": false,
  5952. "data": [
  5953. [
  5954. 1,
  5955. 17.580645
  5956. ],
  5957. [
  5958. 2,
  5959. 14.232143
  5960. ],
  5961. [
  5962. 3,
  5963. 21.596774
  5964. ],
  5965. [
  5966. 4,
  5967. 23.466667
  5968. ],
  5969. [
  5970. 5,
  5971. 25.064516
  5972. ],
  5973. [
  5974. 6,
  5975. 28.166667
  5976. ],
  5977. [
  5978. 7,
  5979. 30.016129
  5980. ],
  5981. [
  5982. 8,
  5983. 29.145161
  5984. ],
  5985. [
  5986. 9,
  5987. 29.400000
  5988. ],
  5989. [
  5990. 10,
  5991. 25.725806
  5992. ],
  5993. [
  5994. 11,
  5995. 22.966667
  5996. ]
  5997. ],
  5998. "hoverAnimation": true,
  5999. "label": {
  6000. "show": false,
  6001. "margin": 8
  6002. },
  6003. "logBase": 10,
  6004. "seriesLayoutBy": "column",
  6005. "lineStyle": {
  6006. "normal": {
  6007. "width": 4,
  6008. "shadowColor": "#696969",
  6009. "shadowBlur": 10,
  6010. "shadowOffsetY": 10,
  6011. "shadowOffsetX": 10
  6012. }
  6013. },
  6014. "areaStyle": {
  6015. "opacity": 0
  6016. },
  6017. "zlevel": 0,
  6018. "z": 0,
  6019. "rippleEffect": {
  6020. "show": true,
  6021. "brushType": "stroke",
  6022. "scale": 2.5,
  6023. "period": 4
  6024. }
  6025. }
  6026. ],
  6027. "xAxis": [
  6028. {
  6029. "type": "category",
  6030. "show": true,
  6031. "scale": false,
  6032. "nameLocation": "end",
  6033. "nameGap": 15,
  6034. "gridIndex": 0,
  6035. "axisLine": {
  6036. "show": true,
  6037. "onZero": true,
  6038. "onZeroAxisIndex": 0,
  6039. "lineStyle": {
  6040. "show": true,
  6041. "width": 2,
  6042. "opacity": 1,
  6043. "curveness": 0,
  6044. "type": "solid",
  6045. "color": "#DB7093"
  6046. }
  6047. },
  6048. "axisLabel": {
  6049. "show": true,
  6050. "color": "red",
  6051. "margin": 8,
  6052. "fontSize": 14
  6053. },
  6054. "inverse": false,
  6055. "offset": 0,
  6056. "splitNumber": 5,
  6057. "boundaryGap": false,
  6058. "minInterval": 0,
  6059. "splitLine": {
  6060. "show": true,
  6061. "lineStyle": {
  6062. "show": true,
  6063. "width": 1,
  6064. "opacity": 1,
  6065. "curveness": 0,
  6066. "type": "solid"
  6067. }
  6068. },
  6069. "data": [
  6070. 1,
  6071. 2,
  6072. 3,
  6073. 4,
  6074. 5,
  6075. 6,
  6076. 7,
  6077. 8,
  6078. 9,
  6079. 10,
  6080. 11,
  6081. 12
  6082. ]
  6083. }
  6084. ],
  6085. "yAxis": [
  6086. {
  6087. "name": "平均温度",
  6088. "show": true,
  6089. "scale": true,
  6090. "nameLocation": "end",
  6091. "nameGap": 15,
  6092. "nameTextStyle": {
  6093. "color": "#5470c6",
  6094. "fontWeight": "bold",
  6095. "fontSize": 16
  6096. },
  6097. "gridIndex": 0,
  6098. "axisLine": {
  6099. "show": true,
  6100. "onZero": true,
  6101. "onZeroAxisIndex": 0,
  6102. "lineStyle": {
  6103. "show": true,
  6104. "width": 2,
  6105. "opacity": 1,
  6106. "curveness": 0,
  6107. "type": "solid",
  6108. "color": "#5470c6"
  6109. }
  6110. },
  6111. "axisLabel": {
  6112. "show": true,
  6113. "color": "#5470c6",
  6114. "margin": 8,
  6115. "fontSize": 13
  6116. },
  6117. "inverse": false,
  6118. "offset": 0,
  6119. "splitNumber": 5,
  6120. "min": 11,
  6121. "max": 33,
  6122. "minInterval": 0,
  6123. "splitLine": {
  6124. "show": true,
  6125. "lineStyle": {
  6126. "show": true,
  6127. "width": 1,
  6128. "opacity": 1,
  6129. "curveness": 0,
  6130. "type": "dashed"
  6131. }
  6132. }
  6133. }
  6134. ],
  6135. "title": [
  6136. {
  6137. "show": true,
  6138. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  6139. "target": "blank",
  6140. "subtarget": "blank",
  6141. "left": "center",
  6142. "top": "2%",
  6143. "padding": 5,
  6144. "itemGap": 10,
  6145. "textAlign": "auto",
  6146. "textVerticalAlign": "auto",
  6147. "triggerEvent": false,
  6148. "textStyle": {
  6149. "color": "#DC143C",
  6150. "fontSize": 20
  6151. }
  6152. }
  6153. ],
  6154. "tooltip": {
  6155. "show": true,
  6156. "trigger": "axis",
  6157. "triggerOn": "mousemove|click",
  6158. "axisPointer": {
  6159. "type": "cross"
  6160. },
  6161. "showContent": true,
  6162. "alwaysShowContent": false,
  6163. "showDelay": 0,
  6164. "hideDelay": 100,
  6165. "enterable": false,
  6166. "confine": false,
  6167. "appendToBody": false,
  6168. "transitionDuration": 0.4,
  6169. "textStyle": {
  6170. "color": "#000"
  6171. },
  6172. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  6173. "borderColor": "#ccc",
  6174. "borderWidth": 1,
  6175. "padding": 5,
  6176. "order": "seriesAsc"
  6177. },
  6178. "color": [
  6179. "#5470c6",
  6180. "#91cc75",
  6181. "#fac858",
  6182. "#ee6666",
  6183. "#73c0de",
  6184. "#3ba272",
  6185. "#fc8452",
  6186. "#9a60b4",
  6187. "#ea7ccc"
  6188. ]
  6189. },
  6190. {
  6191. "backgroundColor": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0, color: '#c86589'}, {offset: 1, color: '#06a7ff'}], false),
  6192. "series": [
  6193. {
  6194. "type": "line",
  6195. "name": "广州",
  6196. "connectNulls": false,
  6197. "xAxisIndex": 0,
  6198. "symbolSize": 5,
  6199. "showSymbol": true,
  6200. "smooth": true,
  6201. "clip": true,
  6202. "step": false,
  6203. "data": [
  6204. [
  6205. 1,
  6206. 15.709677
  6207. ],
  6208. [
  6209. 2,
  6210. 12.232143
  6211. ],
  6212. [
  6213. 3,
  6214. 21.177419
  6215. ],
  6216. [
  6217. 4,
  6218. 22.533333
  6219. ],
  6220. [
  6221. 5,
  6222. 24.370968
  6223. ],
  6224. [
  6225. 6,
  6226. 28.000000
  6227. ],
  6228. [
  6229. 7,
  6230. 30.354839
  6231. ],
  6232. [
  6233. 8,
  6234. 29.000000
  6235. ],
  6236. [
  6237. 9,
  6238. 28.866667
  6239. ],
  6240. [
  6241. 10,
  6242. 24.903226
  6243. ],
  6244. [
  6245. 11,
  6246. 21.783333
  6247. ],
  6248. [
  6249. 12,
  6250. 13.403226
  6251. ]
  6252. ],
  6253. "hoverAnimation": true,
  6254. "label": {
  6255. "show": false,
  6256. "margin": 8
  6257. },
  6258. "logBase": 10,
  6259. "seriesLayoutBy": "column",
  6260. "lineStyle": {
  6261. "normal": {
  6262. "width": 4,
  6263. "shadowColor": "#696969",
  6264. "shadowBlur": 10,
  6265. "shadowOffsetY": 10,
  6266. "shadowOffsetX": 10
  6267. }
  6268. },
  6269. "areaStyle": {
  6270. "opacity": 0
  6271. },
  6272. "zlevel": 0,
  6273. "z": 0,
  6274. "rippleEffect": {
  6275. "show": true,
  6276. "brushType": "stroke",
  6277. "scale": 2.5,
  6278. "period": 4
  6279. }
  6280. },
  6281. {
  6282. "type": "line",
  6283. "name": "河源",
  6284. "connectNulls": false,
  6285. "xAxisIndex": 0,
  6286. "symbolSize": 5,
  6287. "showSymbol": true,
  6288. "smooth": true,
  6289. "clip": true,
  6290. "step": false,
  6291. "data": [
  6292. [
  6293. 1,
  6294. 15.080645
  6295. ],
  6296. [
  6297. 2,
  6298. 11.607143
  6299. ],
  6300. [
  6301. 3,
  6302. 21.096774
  6303. ],
  6304. [
  6305. 4,
  6306. 22.300000
  6307. ],
  6308. [
  6309. 5,
  6310. 23.887097
  6311. ],
  6312. [
  6313. 6,
  6314. 27.550000
  6315. ],
  6316. [
  6317. 7,
  6318. 30.419355
  6319. ],
  6320. [
  6321. 8,
  6322. 29.677419
  6323. ],
  6324. [
  6325. 9,
  6326. 29.216667
  6327. ],
  6328. [
  6329. 10,
  6330. 24.983871
  6331. ],
  6332. [
  6333. 11,
  6334. 21.933333
  6335. ],
  6336. [
  6337. 12,
  6338. 12.096774
  6339. ]
  6340. ],
  6341. "hoverAnimation": true,
  6342. "label": {
  6343. "show": false,
  6344. "margin": 8
  6345. },
  6346. "logBase": 10,
  6347. "seriesLayoutBy": "column",
  6348. "lineStyle": {
  6349. "normal": {
  6350. "width": 4,
  6351. "shadowColor": "#696969",
  6352. "shadowBlur": 10,
  6353. "shadowOffsetY": 10,
  6354. "shadowOffsetX": 10
  6355. }
  6356. },
  6357. "areaStyle": {
  6358. "opacity": 0
  6359. },
  6360. "zlevel": 0,
  6361. "z": 0,
  6362. "rippleEffect": {
  6363. "show": true,
  6364. "brushType": "stroke",
  6365. "scale": 2.5,
  6366. "period": 4
  6367. }
  6368. },
  6369. {
  6370. "type": "line",
  6371. "name": "惠州",
  6372. "connectNulls": false,
  6373. "xAxisIndex": 0,
  6374. "symbolSize": 5,
  6375. "showSymbol": true,
  6376. "smooth": true,
  6377. "clip": true,
  6378. "step": false,
  6379. "data": [
  6380. [
  6381. 1,
  6382. 17.290323
  6383. ],
  6384. [
  6385. 2,
  6386. 14.035714
  6387. ],
  6388. [
  6389. 3,
  6390. 21.677419
  6391. ],
  6392. [
  6393. 4,
  6394. 22.750000
  6395. ],
  6396. [
  6397. 5,
  6398. 24.774194
  6399. ],
  6400. [
  6401. 6,
  6402. 28.050000
  6403. ],
  6404. [
  6405. 7,
  6406. 29.306452
  6407. ],
  6408. [
  6409. 8,
  6410. 28.177419
  6411. ],
  6412. [
  6413. 9,
  6414. 28.416667
  6415. ],
  6416. [
  6417. 10,
  6418. 24.870968
  6419. ],
  6420. [
  6421. 11,
  6422. 22.783333
  6423. ],
  6424. [
  6425. 12,
  6426. 14.967742
  6427. ]
  6428. ],
  6429. "hoverAnimation": true,
  6430. "label": {
  6431. "show": false,
  6432. "margin": 8
  6433. },
  6434. "logBase": 10,
  6435. "seriesLayoutBy": "column",
  6436. "lineStyle": {
  6437. "normal": {
  6438. "width": 4,
  6439. "shadowColor": "#696969",
  6440. "shadowBlur": 10,
  6441. "shadowOffsetY": 10,
  6442. "shadowOffsetX": 10
  6443. }
  6444. },
  6445. "areaStyle": {
  6446. "opacity": 0
  6447. },
  6448. "zlevel": 0,
  6449. "z": 0,
  6450. "rippleEffect": {
  6451. "show": true,
  6452. "brushType": "stroke",
  6453. "scale": 2.5,
  6454. "period": 4
  6455. }
  6456. },
  6457. {
  6458. "type": "line",
  6459. "name": "深圳",
  6460. "connectNulls": false,
  6461. "xAxisIndex": 0,
  6462. "symbolSize": 5,
  6463. "showSymbol": true,
  6464. "smooth": true,
  6465. "clip": true,
  6466. "step": false,
  6467. "data": [
  6468. [
  6469. 1,
  6470. 17.580645
  6471. ],
  6472. [
  6473. 2,
  6474. 14.232143
  6475. ],
  6476. [
  6477. 3,
  6478. 21.596774
  6479. ],
  6480. [
  6481. 4,
  6482. 23.466667
  6483. ],
  6484. [
  6485. 5,
  6486. 25.064516
  6487. ],
  6488. [
  6489. 6,
  6490. 28.166667
  6491. ],
  6492. [
  6493. 7,
  6494. 30.016129
  6495. ],
  6496. [
  6497. 8,
  6498. 29.145161
  6499. ],
  6500. [
  6501. 9,
  6502. 29.400000
  6503. ],
  6504. [
  6505. 10,
  6506. 25.725806
  6507. ],
  6508. [
  6509. 11,
  6510. 22.966667
  6511. ],
  6512. [
  6513. 12,
  6514. 14.870968
  6515. ]
  6516. ],
  6517. "hoverAnimation": true,
  6518. "label": {
  6519. "show": false,
  6520. "margin": 8
  6521. },
  6522. "logBase": 10,
  6523. "seriesLayoutBy": "column",
  6524. "lineStyle": {
  6525. "normal": {
  6526. "width": 4,
  6527. "shadowColor": "#696969",
  6528. "shadowBlur": 10,
  6529. "shadowOffsetY": 10,
  6530. "shadowOffsetX": 10
  6531. }
  6532. },
  6533. "areaStyle": {
  6534. "opacity": 0
  6535. },
  6536. "zlevel": 0,
  6537. "z": 0,
  6538. "rippleEffect": {
  6539. "show": true,
  6540. "brushType": "stroke",
  6541. "scale": 2.5,
  6542. "period": 4
  6543. }
  6544. },
  6545. ],
  6546. "xAxis": [
  6547. {
  6548. "type": "category",
  6549. "show": true,
  6550. "scale": false,
  6551. "nameLocation": "end",
  6552. "nameGap": 15,
  6553. "gridIndex": 0,
  6554. "axisLine": {
  6555. "show": true,
  6556. "onZero": true,
  6557. "onZeroAxisIndex": 0,
  6558. "lineStyle": {
  6559. "show": true,
  6560. "width": 2,
  6561. "opacity": 1,
  6562. "curveness": 0,
  6563. "type": "solid",
  6564. "color": "#DB7093"
  6565. }
  6566. },
  6567. "axisLabel": {
  6568. "show": true,
  6569. "color": "red",
  6570. "margin": 8,
  6571. "fontSize": 14
  6572. },
  6573. "inverse": false,
  6574. "offset": 0,
  6575. "splitNumber": 5,
  6576. "boundaryGap": false,
  6577. "minInterval": 0,
  6578. "splitLine": {
  6579. "show": true,
  6580. "lineStyle": {
  6581. "show": true,
  6582. "width": 1,
  6583. "opacity": 1,
  6584. "curveness": 0,
  6585. "type": "solid"
  6586. }
  6587. },
  6588. "data": [
  6589. 1,
  6590. 2,
  6591. 3,
  6592. 4,
  6593. 5,
  6594. 6,
  6595. 7,
  6596. 8,
  6597. 9,
  6598. 10,
  6599. 11,
  6600. 12
  6601. ]
  6602. }
  6603. ],
  6604. "yAxis": [
  6605. {
  6606. "name": "平均温度",
  6607. "show": true,
  6608. "scale": true,
  6609. "nameLocation": "end",
  6610. "nameGap": 15,
  6611. "nameTextStyle": {
  6612. "color": "#5470c6",
  6613. "fontWeight": "bold",
  6614. "fontSize": 16
  6615. },
  6616. "gridIndex": 0,
  6617. "axisLine": {
  6618. "show": true,
  6619. "onZero": true,
  6620. "onZeroAxisIndex": 0,
  6621. "lineStyle": {
  6622. "show": true,
  6623. "width": 2,
  6624. "opacity": 1,
  6625. "curveness": 0,
  6626. "type": "solid",
  6627. "color": "#5470c6"
  6628. }
  6629. },
  6630. "axisLabel": {
  6631. "show": true,
  6632. "color": "#5470c6",
  6633. "margin": 8,
  6634. "fontSize": 13
  6635. },
  6636. "inverse": false,
  6637. "offset": 0,
  6638. "splitNumber": 5,
  6639. "min": 3,
  6640. "max": 25,
  6641. "minInterval": 0,
  6642. "splitLine": {
  6643. "show": true,
  6644. "lineStyle": {
  6645. "show": true,
  6646. "width": 1,
  6647. "opacity": 1,
  6648. "curveness": 0,
  6649. "type": "dashed"
  6650. }
  6651. }
  6652. }
  6653. ],
  6654. "title": [
  6655. {
  6656. "show": true,
  6657. "text": "广州河源惠州深圳2022年每月平均温度发生变化的趋势",
  6658. "target": "blank",
  6659. "subtarget": "blank",
  6660. "left": "center",
  6661. "top": "2%",
  6662. "padding": 5,
  6663. "itemGap": 10,
  6664. "textAlign": "auto",
  6665. "textVerticalAlign": "auto",
  6666. "triggerEvent": false,
  6667. "textStyle": {
  6668. "color": "#DC143C",
  6669. "fontSize": 20
  6670. }
  6671. }
  6672. ],
  6673. "tooltip": {
  6674. "show": true,
  6675. "trigger": "axis",
  6676. "triggerOn": "mousemove|click",
  6677. "axisPointer": {
  6678. "type": "cross"
  6679. },
  6680. "showContent": true,
  6681. "alwaysShowContent": false,
  6682. "showDelay": 0,
  6683. "hideDelay": 100,
  6684. "enterable": false,
  6685. "confine": false,
  6686. "appendToBody": false,
  6687. "transitionDuration": 0.4,
  6688. "textStyle": {
  6689. "color": "#000"
  6690. },
  6691. "backgroundColor": "rgba(245, 245, 245, 0.8)",
  6692. "borderColor": "#ccc",
  6693. "borderWidth": 1,
  6694. "padding": 5,
  6695. "order": "seriesAsc"
  6696. },
  6697. "color": [
  6698. "#5470c6",
  6699. "#91cc75",
  6700. "#fac858",
  6701. "#ee6666",
  6702. "#73c0de",
  6703. "#3ba272",
  6704. "#fc8452",
  6705. "#9a60b4",
  6706. "#ea7ccc"
  6707. ]
  6708. }
  6709. ]
  6710. };
  6711. chart_05381e07884b4ca4a31f555d2e24d39e.setOption(option_05381e07884b4ca4a31f555d2e24d39e);
  6712. </script>
  6713. <br/> <div id="8a7398d8a2e046d998a8c6eabebb483a" class="chart-container" style="width:900px; height:500px; "></div>
  6714. <script>
  6715. var chart_8a7398d8a2e046d998a8c6eabebb483a = echarts.init(
  6716. document.getElementById('8a7398d8a2e046d998a8c6eabebb483a'), 'white', {renderer: 'canvas'});
  6717. var option_8a7398d8a2e046d998a8c6eabebb483a = {
  6718. "animation": true,
  6719. "animationThreshold": 2000,
  6720. "animationDuration": 1000,
  6721. "animationEasing": "cubicOut",
  6722. "animationDelay": 0,
  6723. "animationDurationUpdate": 300,
  6724. "animationEasingUpdate": "cubicOut",
  6725. "animationDelayUpdate": 0,
  6726. "aria": {
  6727. "enabled": false
  6728. },
  6729. "color": [
  6730. "#5470c6",
  6731. "#91cc75",
  6732. "#fac858",
  6733. "#ee6666",
  6734. "#73c0de",
  6735. "#3ba272",
  6736. "#fc8452",
  6737. "#9a60b4",
  6738. "#ea7ccc"
  6739. ],
  6740. "series": [
  6741. {
  6742. "type": "bar",
  6743. "name": "平均温度",
  6744. "legendHoverLink": true,
  6745. "data": [
  6746. 120,
  6747. 110,
  6748. 134,
  6749. 120
  6750. ],
  6751. "realtimeSort": false,
  6752. "showBackground": false,
  6753. "stackStrategy": "samesign",
  6754. "cursor": "pointer",
  6755. "barMinHeight": 0,
  6756. "barCategoryGap": "20%",
  6757. "barGap": "30%",
  6758. "large": false,
  6759. "largeThreshold": 400,
  6760. "seriesLayoutBy": "column",
  6761. "datasetIndex": 0,
  6762. "clip": true,
  6763. "zlevel": 0,
  6764. "z": 2,
  6765. "label": {
  6766. "show": true,
  6767. "position": "top",
  6768. "margin": 8
  6769. },
  6770. "rippleEffect": {
  6771. "show": true,
  6772. "brushType": "stroke",
  6773. "scale": 2.5,
  6774. "period": 4
  6775. }
  6776. }
  6777. ],
  6778. "legend": [
  6779. {
  6780. "data": [
  6781. "天数"
  6782. ],
  6783. "selected": {},
  6784. "show": true,
  6785. "padding": 5,
  6786. "itemGap": 10,
  6787. "itemWidth": 25,
  6788. "itemHeight": 14,
  6789. "backgroundColor": "transparent",
  6790. "borderColor": "#ccc",
  6791. "borderWidth": 1,
  6792. "borderRadius": 0,
  6793. "pageButtonItemGap": 5,
  6794. "pageButtonPosition": "end",
  6795. "pageFormatter": "{current}/{total}",
  6796. "pageIconColor": "#2f4554",
  6797. "pageIconInactiveColor": "#aaa",
  6798. "pageIconSize": 15,
  6799. "animationDurationUpdate": 800,
  6800. "selector": false,
  6801. "selectorPosition": "auto",
  6802. "selectorItemGap": 7,
  6803. "selectorButtonGap": 10
  6804. }
  6805. ],
  6806. "tooltip": {
  6807. "show": true,
  6808. "trigger": "item",
  6809. "triggerOn": "mousemove|click",
  6810. "axisPointer": {
  6811. "type": "line"
  6812. },
  6813. "showContent": true,
  6814. "alwaysShowContent": false,
  6815. "showDelay": 0,
  6816. "hideDelay": 100,
  6817. "enterable": false,
  6818. "confine": false,
  6819. "appendToBody": false,
  6820. "transitionDuration": 0.4,
  6821. "textStyle": {
  6822. "fontSize": 14
  6823. },
  6824. "borderWidth": 0,
  6825. "padding": 5,
  6826. "order": "seriesAsc"
  6827. },
  6828. "xAxis": [
  6829. {
  6830. "show": true,
  6831. "scale": false,
  6832. "nameLocation": "end",
  6833. "nameGap": 15,
  6834. "gridIndex": 0,
  6835. "inverse": false,
  6836. "offset": 0,
  6837. "splitNumber": 5,
  6838. "minInterval": 0,
  6839. "splitLine": {
  6840. "show": true,
  6841. "lineStyle": {
  6842. "show": true,
  6843. "width": 1,
  6844. "opacity": 1,
  6845. "curveness": 0,
  6846. "type": "solid"
  6847. }
  6848. },
  6849. "data": [
  6850. "广州",
  6851. "河源",
  6852. "惠州",
  6853. "深圳"
  6854. ]
  6855. }
  6856. ],
  6857. "yAxis": [
  6858. {
  6859. "show": true,
  6860. "scale": false,
  6861. "nameLocation": "end",
  6862. "nameGap": 15,
  6863. "gridIndex": 0,
  6864. "inverse": false,
  6865. "offset": 0,
  6866. "splitNumber": 5,
  6867. "minInterval": 0,
  6868. "splitLine": {
  6869. "show": true,
  6870. "lineStyle": {
  6871. "show": true,
  6872. "width": 1,
  6873. "opacity": 1,
  6874. "curveness": 0,
  6875. "type": "solid"
  6876. }
  6877. }
  6878. }
  6879. ],
  6880. "title": [
  6881. {
  6882. "show": true,
  6883. "text": "广州河源惠州深圳2022年平均气温为18-25℃的天数",
  6884. "target": "blank",
  6885. "subtarget": "blank",
  6886. "padding": 5,
  6887. "itemGap": 10,
  6888. "textAlign": "auto",
  6889. "textVerticalAlign": "auto",
  6890. "triggerEvent": false
  6891. }
  6892. ]
  6893. };
  6894. chart_8a7398d8a2e046d998a8c6eabebb483a.setOption(option_8a7398d8a2e046d998a8c6eabebb483a);
  6895. </script>
  6896. <br/> </div>
  6897. <script>
  6898. $('#c48b9e2d9b7440e1b2f458d54f3b383c').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#c48b9e2d9b7440e1b2f458d54f3b383c>div:nth-child(1)").width("100%").height("100%");
  6899. new ResizeSensor(jQuery('#c48b9e2d9b7440e1b2f458d54f3b383c'), function() { chart_c48b9e2d9b7440e1b2f458d54f3b383c.resize()});
  6900. $('#88ddd5d9c5594bf597661b16ae91e0e4').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#88ddd5d9c5594bf597661b16ae91e0e4>div:nth-child(1)").width("100%").height("100%");
  6901. new ResizeSensor(jQuery('#88ddd5d9c5594bf597661b16ae91e0e4'), function() { chart_88ddd5d9c5594bf597661b16ae91e0e4.resize()});
  6902. $('#8d11665b4f43436cbb0b2ed6ae6b27f9').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#8d11665b4f43436cbb0b2ed6ae6b27f9>div:nth-child(1)").width("100%").height("100%");
  6903. new ResizeSensor(jQuery('#8d11665b4f43436cbb0b2ed6ae6b27f9'), function() { chart_8d11665b4f43436cbb0b2ed6ae6b27f9.resize()});
  6904. $('#05381e07884b4ca4a31f555d2e24d39e').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#05381e07884b4ca4a31f555d2e24d39e>div:nth-child(1)").width("100%").height("100%");
  6905. new ResizeSensor(jQuery('#05381e07884b4ca4a31f555d2e24d39e'), function() { chart_05381e07884b4ca4a31f555d2e24d39e.resize()});
  6906. $('#8a7398d8a2e046d998a8c6eabebb483a').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#8a7398d8a2e046d998a8c6eabebb483a>div:nth-child(1)").width("100%").height("100%");
  6907. new ResizeSensor(jQuery('#8a7398d8a2e046d998a8c6eabebb483a'), function() { chart_8a7398d8a2e046d998a8c6eabebb483a.resize()});
  6908. var charts_id = ['c48b9e2d9b7440e1b2f458d54f3b383c','88ddd5d9c5594bf597661b16ae91e0e4','8d11665b4f43436cbb0b2ed6ae6b27f9','05381e07884b4ca4a31f555d2e24d39e','8a7398d8a2e046d998a8c6eabebb483a'];
  6909. function downloadCfg () {
  6910. const fileName = 'chart_config.json'
  6911. let downLink = document.createElement('a')
  6912. downLink.download = fileName
  6913. let result = []
  6914. for(let i=0; i<charts_id.length; i++) {
  6915. chart = $('#'+charts_id[i])
  6916. result.push({
  6917. cid: charts_id[i],
  6918. width: chart.css("width"),
  6919. height: chart.css("height"),
  6920. top: chart.offset().top + "px",
  6921. left: chart.offset().left + "px"
  6922. })
  6923. }
  6924. let blob = new Blob([JSON.stringify(result)])
  6925. downLink.href = URL.createObjectURL(blob)
  6926. document.body.appendChild(downLink)
  6927. downLink.click()
  6928. document.body.removeChild(downLink)
  6929. }
  6930. </script>
  6931. </body>
  6932. </html>

博主写代码来之不易

关注博主下篇更精彩

一键三连!!!

一键三连!!!
感谢一键三连!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/164833
推荐阅读
相关标签
  

闽ICP备14008679号