JavaScript
const option = {
"title": {
"text": ""
},
"tooltip": {
"trigger": "axis"
},
"legend": {
"data": [],
"show": false
},
"grid": {
"left": 5,
"right": 15,
"bottom": "2%",
"top": "4%",
"containLabel": true,
"show": true,
"backgroundColor": "transparent"
},
"xAxis": {
"type": "category",
"boundaryGap": false,
"data": [
"0:00",
"0:30",
"1:00",
"1:30",
"2:00",
"2:30",
"3:00",
"3:30",
"4:00",
"4:30",
"5:00",
"5:30",
"6:00",
"6:30",
"7:00",
"7:30",
"8:00",
"8:30",
"9:00",
"9:30",
"10:00",
"10:30",
"11:00",
"11:30",
"12:00",
"12:30",
"13:00"
],
"splitLine": {
"show": false
},
"axisTick": {
"show": false
},
"axisLine": {
"show": false
},
"axisLabel": {
"fontSize": 10
}
},
"yAxis": {
"type": "value",
"min": 0,
"axisTick": {
"show": false
},
"axisLabel": {
"fontSize": 10
},
"axisLine": {
"show": false
},
"splitLine": {
"show": true
},
"interval": 69211
},
"series": [
{
"name": "1",
"type": "line",
"smooth": true,
"itemStyle": {
"normal": {
"opacity": 0
}
},
"lineStyle": {
"normal": {
"width": 1.5,
"color": "#AC5AFF"
}
},
"z": 0,
"areaStyle": {
"normal": {
"color": new echarts.graphic.LinearGradient(
0, 0, 0, 1,
[
{ offset: 0, color: 'rgba(172,90,255,0.2)' },
{ offset: 1, color: 'rgba(172,90,255,0)' }
]
)
}
},
"data": [
31574,
164657,
276844,
101562,
112015,
92247,
...