Repository navigation
Expand file tree
/
Copy pathtest1.html
More file actions
117 lines (107 loc) · 27.7 KB
/
Copy pathtest1.html
File metadata and controls
117 lines (107 loc) · 27.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>chart</title>
<style>
html, body, #main {
width: 100%;
height: 100%;
}
</style>
<script src="dut/js/echarts.js" type="text/javascript" charset="utf-8"></script>
<script src="dut/js/jquery-1.11.3.min.js"></script>
</head>
<body>
<div id="main"> </div>
<script>
var myChart = echarts.init(document.getElementById('main'));
var base = new Date();
var oneDay =89* 1000;
var date = [];
var npc = [2.15000000000000,2.24000000000000,2.15000000000000,2.02000000000000,2.15000000000000,2.27000000000000,2.34000000000000,2.42000000000000,2.38000000000000,2.29000000000000,2.18000000000000,2.06000000000000,2,1.93000000000000,1.87000000000000,1.79000000000000,1.76000000000000,1.83000000000000,1.99000000000000,2.15000000000000,2.31000000000000,2.52000000000000,2.63000000000000,2.60000000000000,2.44000000000000,2.10000000000000,1.76000000000000,1.54000000000000,1.45000000000000,1.53000000000000,1.62000000000000,1.82000000000000,2.03000000000000,2.21000000000000,2.32000000000000,2.30000000000000,1.95000000000000,1.53000000000000,1.19000000000000,1.05000000000000,1.15000000000000,1.32000000000000,1.59000000000000,1.92000000000000,2.18000000000000,2.46000000000000,2.62000000000000,2.64000000000000,2.52000000000000,2.28000000000000,1.97000000000000,1.66000000000000,1.54000000000000,1.59000000000000,1.78000000000000,2.01000000000000,2.29000000000000,2.51000000000000,2.67000000000000,2.91000000000000,2.57000000000000,2.25000000000000,2.04000000000000,1.83000000000000,1.76000000000000,1.88000000000000,1.83000000000000,2.04000000000000,2.32000000000000,2.55000000000000,2.72000000000000,2.85000000000000,2.98000000000000,2.96000000000000,2.53000000000000,1.99000000000000,1.52000000000000,1.12000000000000,1.11000000000000,1.32000000000000,1.67000000000000,2.01000000000000,2.21000000000000,2.27000000000000,2.23000000000000,2.01000000000000,1.66000000000000,1.31000000000000,0.990000000000000,0.700000000000000,0.820000000000000,1.21000000000000,1.61000000000000,2.09000000000000,2.64000000000000,3.02000000000000,3.21000000000000,3.29000000000000,3.03000000000000,2.54000000000000,2.05000000000000,1.68000000000000,1.48000000000000,1.63000000000000,1.80000000000000,2.12000000000000,2.44000000000000,2.71000000000000,2.82000000000000,2.78000000000000,2.58000000000000,2.21000000000000,1.69000000000000,1.35000000000000,1.26000000000000,1.34000000000000,1.56000000000000,1.82000000000000,2.19000000000000,2.49000000000000,2.57000000000000,2.62000000000000,2.43000000000000,2.05000000000000,1.68000000000000,1.35000000000000,1.10000000000000,1.05000000000000,1.18000000000000,1.42000000000000,1.78000000000000,2.13000000000000,2.42000000000000,2.47000000000000,2.33000000000000,2.03000000000000,1.59000000000000,1.19000000000000,0.850000000000000,0.720000000000000,0.890000000000000,1.16000000000000,1.48000000000000,1.80000000000000,2.05000000000000,2.23000000000000,2.22000000000000,1.86000000000000,1.47000000000000,1.05000000000000,0.660000000000000,0.430000000000000,0.550000000000000,0.780000000000000,1.04000000000000,1.36000000000000,1.67000000000000,1.94000000000000,1.99000000000000,1.82000000000000,1.48000000000000,1.07000000000000,0.720000000000000,0.540000000000000,0.610000000000000,0.870000000000000,1.08000000000000,1.39000000000000,1.65000000000000,1.82000000000000,1.90000000000000,1.85000000000000,1.58000000000000,1.25000000000000,0.890000000000000,0.590000000000000,0.490000000000000,0.550000000000000,0.840000000000000,1.13000000000000,1.38000000000000,1.64000000000000,1.82000000000000,1.94000000000000,1.84000000000000,1.54000000000000,1.18000000000000,0.830000000000000,0.660000000000000,0.660000000000000,0.870000000000000,1.17000000000000,1.46000000000000,1.65000000000000,1.80000000000000,1.81000000000000,1.64000000000000,1.34000000000000,1,0.620000000000000,0.400000000000000,0.360000000000000,0.480000000000000,0.720000000000000,1.03000000000000,1.29000000000000,1.57000000000000,1.67000000000000,1.67000000000000,1.56000000000000,1.31000000000000,1.05000000000000,0.870000000000000,0.710000000000000,0.720000000000000,0.800000000000000,0.950000000000000,1.14000000000000,1.28000000000000,1.37000000000000,1.44000000000000,1.32000000000000,1.10000000000000,0.830000000000000,0.630000000000000,0.420000000000000,0.240000000000000,0.290000000000000,0.570000000000000,0.940000000000000,1.25000000000000,1.47000000000000,1.56000000000000,1.55000000000000,1.34000000000000,1.05000000000000,0.820000000000000,0.700000000000000,0.640000000000000,0.630000000000000,0.740000000000000,0.950000000000000,1.16000000000000,1.31000000000000,1.35000000000000,1.30000000000000,1.15000000000000,0.930000000000000,0.750000000000000,0.600000000000000,0.500000000000000,0.500000000000000,0.610000000000000,0.840000000000000,1.11000000000000,1.35000000000000,1.49000000000000,1.54000000000000,1.54000000000000,1.43000000000000,1.22000000000000,0.990000000000000,0.810000000000000,0.720000000000000,0.730000000000000,0.850000000000000,0.990000000000000,1.15000000000000,1.27000000000000,1.27000000000000,1.15000000000000,1.08000000000000,0.940000000000000,0.780000000000000,0.590000000000000,0.500000000000000,0.500000000000000,0.640000000000000,0.810000000000000,1,1.32000000000000,1.64000000000000,1.84000000000000,1.88000000000000,1.79000000000000,1.59000000000000,1.37000000000000,1.33000000000000,1.35000000000000,1.37000000000000,1.43000000000000,1.47000000000000,1.48000000000000,1.53000000000000,1.61000000000000,1.70000000000000,1.61000000000000,1.47000000000000,1.41000000000000,1.42000000000000,1.28000000000000,1.30000000000000,1.43000000000000,1.60000000000000,1.77000000000000,1.93000000000000,2.11000000000000,2.30000000000000,2.36000000000000,2.26000000000000,2.04000000000000,1.81000000000000,1.65000000000000,1.57000000000000,1.61000000000000,1.78000000000000,1.78000000000000,1.78000000000000,1.86000000000000,1.96000000000000,1.98000000000000,2.01000000000000,1.90000000000000,1.72000000000000,1.55000000000000,1.38000000000000,1.30000000000000,1.36000000000000,1.56000000000000,1.74000000000000,1.99000000000000,2.27000000000000,2.45000000000000,2.54000000000000,2.56000000000000,2.45000000000000,1.99000000000000,1.62000000000000,1.41000000000000,1.29000000000000,1.34000000000000,1.57000000000000,1.83000000000000,2.06000000000000,2.20000000000000,2.19000000000000,2.22000000000000,2.10000000000000,1.94000000000000,1.82000000000000,1.69000000000000,1.71000000000000,1.83000000000000,2.06000000000000,2.40000000000000,2.55000000000000,2.65000000000000,2.88000000000000,2.96000000000000,2.92000000000000,2.82000000000000,2.62000000000000,2.38000000000000,2.12000000000000,1.90000000000000,1.86000000000000,1.98000000000000,2.20000000000000,2.40000000000000,2.59000000000000,2.68000000000000,2.71000000000000,2.64000000000000,2.49000000000000,2.28000000000000,2.03000000000000,1.84000000000000,1.87000000000000,2.06000000000000,2.30000000000000,2.57000000000000,2.83000000000000,2.93000000000000,2.95000000000000,2.82000000000000,2.61000000000000,2.32000000000000,2.04000000000000,1.82000000000000,1.65000000000000,1.71000000000000,1.92000000000000,2.18000000000000,2.32000000000000,2.47000000000000,2.55000000000000,2.49000000000000,2.30000000000000,2.05000000000000,1.81000000000000,1.58000000000000,1.48000000000000,1.52000000000000,1.80000000000000,2.09000000000000,2.34000000000000,2.60000000000000,2.72000000000000,2.61000000000000,2.31000000000000,1.96000000000000,1.60000000000000,1.30000000000000,1.11000000000000,1.09000000000000,1.25000000000000,1.57000000000000,1.87000000000000,2.09000000000000,2.24000000000000,2.31000000000000,2.09000000000000,1.81000000000000,1.55000000000000,1.25000000000000,1.10000000000000,1.11000000000000,1.30000000000000,1.59000000000000,1.95000000000000,2.27000000000000,2.49000000000000,2.50000000000000,2.33000000000000,2,1.61000000000000,1.23000000000000,0.940000000000000,0.870000000000000,0.970000000000000,1.23000000000000,1.53000000000000,1.83000000000000,1.96000000000000,2.02000000000000,1.95000000000000,1.74000000000000,1.38000000000000,1.01000000000000,0.710000000000000,0.580000000000000,0.600000000000000,0.870000000000000,1.22000000000000,1.59000000000000,1.85000000000000,2.02000000000000,1.99000000000000,1.79000000000000,1.44000000000000,1.03000000000000,0.660000000000000,0.400000000000000,0.350000000000000,0.480000000000000,0.750000000000000,1.04000000000000,1.32000000000000,1.51000000000000,1.60000000000000,1.55000000000000,1.29000000000000,0.980000000000000,0.660000000000000,0.390000000000000,0.340000000000000,0.470000000000000,0.790000000000000,1.13000000000000,1.44000000000000,1.63000000000000,1.72000000000000,1.67000000000000,1.51000000000000,1.17000000000000,0.850000000000000,0.500000000000000,0.200000000000000,0.190000000000000,0.390000000000000,0.740000000000000,1.07000000000000,1.36000000000000,1.48000000000000,1.58000000000000,1.41000000000000,1.18000000000000,0.890000000000000,0.540000000000000,0.290000000000000,0.160000000000000,0.410000000000000,0.760000000000000,1.05000000000000,1.43000000000000,1.89000000000000,2.02000000000000,1.96000000000000,1.85000000000000,1.85000000000000,1.62000000000000,1.60000000000000,1.63000000000000,1.68000000000000,1.87000000000000,2.22000000000000,2.54000000000000,2.60000000000000,2.75000000000000,2.81000000000000,2.68000000000000,2.56000000000000,2.41000000000000,2.21000000000000,1.98000000000000,2.08000000000000,2.30000000000000,2.58000000000000,2.64000000000000,2.85000000000000,3.01000000000000,2.91000000000000,2.70000000000000,2.47000000000000,2.12000000000000,1.88000000000000,1.76000000000000,1.83000000000000,2,2.24000000000000,2.45000000000000,2.56000000000000,2.69000000000000,2.80000000000000,2.70000000000000,2.43000000000000,2.16000000000000,1.94000000000000,1.64000000000000,1.63000000000000,1.77000000000000,2.01000000000000,2.32000000000000,2.63000000000000,2.82000000000000,2.81000000000000,2.90000000000000,2.59000000000000,2.38000000000000,2.02000000000000,1.79000000000000,1.79000000000000,1.84000000000000,2.05000000000000,2.26000000000000,2.42000000000000,2.72000000000000,2.81000000000000,2.79000000000000,2.63000000000000,2.33000000000000,2.05000000000000,2.79000000000000,1.68000000000000,1.84000000000000,2.10000000000000,2.35000000000000,2.47000000000000,2.53000000000000,2.63000000000000,2.59000000000000,2.44000000000000,2.21000000000000,1.93000000000000,1.83000000000000,1.80000000000000,1.76000000000000,1.94000000000000,2.08000000000000,2.15000000000000,2.24000000000000,2.35000000000000,2.43000000000000,2.41000000000000,2.25000000000000,2.07000000000000,1.88000000000000,1.76000000000000,1.04000000000000,0.950000000000000,0.930000000000000,0.950000000000000,1.03000000000000,1.12000000000000,1.18000000000000,1.18000000000000,1.16000000000000,1.08000000000000,0.970000000000000,0.830000000000000,0.680000000000000,0.560000000000000,0.510000000000000,0.540000000000000,0.750000000000000,0.950000000000000,1.17000000000000,1.30000000000000,1.38000000000000,1.39000000000000,1.33000000000000,1.20000000000000,1.03000000000000,0.870000000000000,0.710000000000000,0.560000000000000,0.520000000000000,0.660000000000000,0.810000000000000,0.980000000000000,1.09000000000000,1.07000000000000,0.980000000000000,0.770000000000000,0.490000000000000,0.280000000000000,0.140000000000000,0.0400000000000000,0.0700000000000000,0.170000000000000,0.440000000000000,0.700000000000000,0.940000000000000,1.10000000000000,1.17000000000000,1.16000000000000,1.07000000000000,0.880000000000000,0.710000000000000,0.550000000000000,0.460000000000000,0.440000000000000,0.600000000000000,0.840000000000000,1.08000000000000,1.25000000000000,1.33000000000000,1.36000000000000,1.14000000000000,0.860000000000000,0.700000000000000,0.620000000000000,0.620000000000000,0.790000000000000,1.13000000000000,1.43000000000000,1.75000000000000,2.08000000000000,2.38000000000000,2.56000000000000,2.66000000000000,2.40000000000000,2.03000000000000,1.79000000000000,1.43000000000000,1.17000000000000,1.18000000000000,1.46000000000000,1.67000000000000,1.86000000000000,2.24000000000000,2.43000000000000,2.27000000000000,2.04000000000000,1.80000000000000,1.58000000000000,1.54000000000000,1.70000000000000,2.01000000000000,2.22000000000000,2.34000000000000,2.43000000000000,2.54000000000000,2.60000000000000,2.47000000000000,2.31000000000000,2.11000000000000,1.88000000000000,1.60000000000000,1.43000000000000,1.37000000000000,1.45000000000000,1.67000000000000,1.95000000000000,2.21000000000000,2.39000000000000,2.49000000000000,2.49000000000000,2.27000000000000,1.84000000000000,1.44000000000000,1.11000000000000,1.02000000000000,1.29000000000000,1.70000000000000,2.01000000000000,2.33000000000000,2.55000000000000,2.60000000000000,2.52000000000000,2.27000000000000,1.95000000000000,1.56000000000000,1.23000000000000,1.07000000000000,1.18000000000000,1.49000000000000,1.80000000000000,2.11000000000000,2.32000000000000,2.45000000000000,2.57000000000000,2.29000000000000,2,1.71000000000000,1.38000000000000,1.02000000000000,0.950000000000000,1.22000000000000,1.63000000000000,2.07000000000000,2.53000000000000,2.95000000000000,3.38000000000000,3.69000000000000,3.53000000000000,3.18000000000000,2.85000000000000,2.21000000000000,1.84000000000000,1.65000000000000,1.75000000000000,2.12000000000000,2.40000000000000,2.60000000000000,2.83000000000000,2.82000000000000,2.59000000000000,2.29000000000000,1.96000000000000,1.74000000000000,1.76000000000000,1.87000000000000,2.04000000000000,2.44000000000000,2.88000000000000,3.29000000000000,3.56000000000000,3.69000000000000,3.70000000000000,3.24000000000000,2.81000000000000,2.89000000000000,2.94000000000000,2.93000000000000,2.87000000000000,3.29000000000000,3.80000000000000,4.26000000000000,4.41000000000000,4.47000000000000,4.53000000000000,4.18000000000000,3.87000000000000,3.53000000000000,3.37000000000000,3.22000000000000,3.14000000000000,3.42000000000000,3.65000000000000,4.04000000000000,4.38000000000000,4.70000000000000,4.82000000000000,4.87000000000000,4.56000000000000,4.41000000000000,4.23000000000000,4.38000000000000,4.48000000000000,4.64000000000000,4.78000000000000,4.91000000000000,5.05000000000000,5.38000000000000,5.28000000000000,4.93000000000000,4.88000000000000,4.72000000000000,4.25000000000000,3.98000000000000,3.90000000000000,3.93000000000000,4.08000000000000,4.21000000000000,4.38000000000000,4.44000000000000,4.33000000000000,4.12000000000000,3.79000000000000,3.37000000000000,3,2.62000000000000,2.47000000000000,2.45000000000000,2.52000000000000,2.77000000000000,3.04000000000000,3.27000000000000,3.39000000000000,3.39000000000000,3.08000000000000,2.57000000000000,2.08000000000000,1.82000000000000,1.82000000000000,2.03000000000000,2.35000000000000,2.60000000000000,2.81000000000000,3.19000000000000,3.15000000000000,2.97000000000000,2.73000000000000,2.37000000000000,1.98000000000000,1.68000000000000,1.58000000000000,1.57000000000000,1.71000000000000,1.95000000000000,2.17000000000000,2.39000000000000,2.52000000000000,2.58000000000000,2.53000000000000,2.42000000000000,2.25000000000000,2.02000000000000,1.79000000000000,1.67000000000000,1.72000000000000,1.90000000000000,2.17000000000000,2.42000000000000,2.57000000000000,2.66000000000000,2.63000000000000,2.44000000000000,2.17000000000000,1.87000000000000,1.55000000000000,1.32000000000000,1.34000000000000,1.63000000000000,1.95000000000000,2.28000000000000,2.46000000000000,2.59000000000000,2.56000000000000,2.36000000000000,2.09000000000000,1.80000000000000,1.50000000000000,1.29000000000000,1.22000000000000,1.36000000000000,1.61000000000000,1.84000000000000,2,2.07000000000000,2.05000000000000,1.95000000000000,1.77000000000000,1.58000000000000,1.36000000000000,1.16000000000000,1.05000000000000,1.04000000000000,1.15000000000000,1.40000000000000,1.64000000000000,1.93000000000000,2.03000000000000,2.16000000000000,2.08000000000000,1.96000000000000,1.87000000000000,1.59000000000000,1.42000000000000,1.47000000000000,1.64000000000000,1.75000000000000,1.83000000000000,1.97000000000000,2.02000000000000,2.02000000000000,2.02000000000000,1.92000000000000,1.76000000000000,1.60000000000000,1.47000000000000,1.37000000000000,1.36000000000000,1.52000000000000,1.72000000000000,1.95000000000000,2.11000000000000,2.24000000000000,2.28000000000000,2.22000000000000,2.10000000000000,1.99000000000000,1.86000000000000,1.71000000000000,1.65000000000000,1.63000000000000,1.69000000000000,1.80000000000000,1.90000000000000,2.01000000000000,2.03000000000000,2,1.93000000000000,1.85000000000000,1.75000000000000,1.62000000000000,1.52000000000000,1.56000000000000,1.69000000000000,2.01000000000000,2.27000000000000,2.49000000000000,2.72000000000000,2.84000000000000,2.85000000000000,2.95000000000000,2.80000000000000,2.59000000000000,2.41000000000000,2.25000000000000,2.11000000000000,2.11000000000000,2.26000000000000,2.47000000000000,2.68000000000000,2.86000000000000,2.97000000000000,2.96000000000000,2.72000000000000,2.45000000000000,2.14000000000000,1.96000000000000,1.94000000000000,2.09000000000000,2.26000000000000,2.39000000000000,2.44000000000000,2.45000000000000,2.48000000000000,2.46000000000000,2.39000000000000,2.29000000000000,2.18000000000000,2.01000000000000,1.83000000000000,1.65000000000000,1.58000000000000,1.60000000000000,1.83000000000000,2.07000000000000,2.21000000000000,2.27000000000000,2.24000000000000,2.09000000000000,1.87000000000000,1.59000000000000,1.38000000000000,1.31000000000000,1.39000000000000,1.62000000000000,1.85000000000000,2.09000000000000,2.28000000000000,2.39000000000000,2.42000000000000,2.33000000000000,2.12000000000000,1.83000000000000,1.52000000000000,1.29000000000000,1.19000000000000,1.32000000000000,1.67000000000000,1.93000000000000,2.18000000000000,2.37000000000000,2.41000000000000,2.30000000000000,2.05000000000000,1.78000000000000,1.51000000000000,1.30000000000000,1.14000000000000,1.22000000000000,1.45000000000000,1.72000000000000,2.03000000000000,2.26000000000000,2.37000000000000,2.37000000000000,2.23000000000000,1.97000000000000,1.65000000000000,1.31000000000000,1.08000000000000,1.03000000000000,1.18000000000000,1.44000000000000,1.73000000000000,2.03000000000000,2.25000000000000,2.29000000000000,2.23000000000000,2,1.75000000000000,1.50000000000000,1.29000000000000,1.31000000000000,1.46000000000000,1.73000000000000,2.02000000000000,2.36000000000000,2.58000000000000,2.63000000000000,2.56000000000000,2.33000000000000,1.98000000000000,1.65000000000000,1.37000000000000,1.27000000000000,1.33000000000000,1.59000000000000,1.90000000000000,2.21000000000000,2.41000000000000,2.52000000000000,2.52000000000000,2.31000000000000,2,1.67000000000000,1.37000000000000,1.19000000000000,1.14000000000000,1.34000000000000,1.66000000000000,2.01000000000000,2.34000000000000,2.56000000000000,2.64000000000000,2.49000000000000,2.12000000000000,1.76000000000000,1.40000000000000,1.11000000000000,1.03000000000000,1.15000000000000,1.40000000000000,1.71000000000000,2.03000000000000,2.32000000000000,2.44000000000000,2.42000000000000,2.14000000000000,1.80000000000000,1.46000000000000,1.21000000000000,1.15000000000000,1.26000000000000,1.57000000000000,1.87000000000000,2.11000000000000,2.35000000000000,2.49000000000000,2.47000000000000,2.29000000000000,1.94000000000000,1.51000000000000,1.14000000000000,0.880000000000000,0.870000000000000,1.10000000000000,1.43000000000000,1.77000000000000,2.06000000000000,2.30000000000000,2.37000000000000,2.23000000000000,1.86000000000000,1.40000000000000,0.930000000000000,0.640000000000000,0.660000000000000,0.940000000000000,1.29000000000000,1.65000000000000,1.97000000000000,2.15000000000000,2.20000000000000,2.05000000000000,1.77000000000000,1.44000000000000,1.12000000000000,0.840000000000000,0.800000000000000,1,1.36000000000000,1.73000000000000,2.08000000000000,2.38000000000000,2.52000000000000,2.44000000000000,2.17000000000000,1.81000000000000,1.39000000000000,1.05000000000000,0.890000000000000,0.930000000000000,1.21000000000000,1.59000000000000,1.88000000000000,1.99000000000000,2,1.85000000000000,1.55000000000000,1.21000000000000,0.840000000000000,0.640000000000000,0.450000000000000,0.280000000000000,0.320000000000000,0.720000000000000,1.21000000000000,1.74000000000000,2.15000000000000,2.37000000000000,2.11000000000000,1.97000000000000,2.34000000000000,2.43000000000000,1.76000000000000,1.96000000000000,2.50000000000000,2.19000000000000,2.72000000000000,3.61000000000000,3.91000000000000,3.76000000000000,3.55000000000000,3.89000000000000,3.70000000000000,3.21000000000000,3,2.85000000000000,2.88000000000000,3.23000000000000,3.50000000000000,3.80000000000000,4.22000000000000,4.15000000000000,4.05000000000000,3.89000000000000,4.12000000000000,4.30000000000000,4.53000000000000,5.09000000000000,5.57000000000000,5.59000000000000,5.48000000000000,5.60000000000000,5.76000000000000,5.57000000000000,5.13000000000000,4.89000000000000,4.62000000000000,4.22000000000000,3.88000000000000,3.83000000000000,3.71000000000000,3.93000000000000,4.13000000000000,4.19000000000000,4.43000000000000,4.72000000000000,4.44000000000000,4.23000000000000,3.84000000000000,3.40000000000000,3.04000000000000,2.84000000000000,2.80000000000000,2.86000000000000,3,3.09000000000000,3.12000000000000,3.24000000000000,3.19000000000000,2.99000000000000,2.70000000000000,2.27000000000000,2.03000000000000,1.81000000000000,1.93000000000000,2.40000000000000,2.81000000000000,3.17000000000000,3.52000000000000,3.51000000000000,3.61000000000000,3.50000000000000,3.54000000000000,3.48000000000000,3.58000000000000,3.50000000000000,3.26000000000000,3.17000000000000,3.16000000000000,3.24000000000000,3.27000000000000,3.13000000000000,2.98000000000000,2.83000000000000,2.64000000000000,2.44000000000000,2.30000000000000,2.15000000000000,1.94000000000000,1.94000000000000,2.17000000000000,2.41000000000000,2.56000000000000,2.62000000000000,2.61000000000000,2.59000000000000,2.47000000000000,2.29000000000000,2.13000000000000,1.95000000000000,1.75000000000000,1.63000000000000,1.68000000000000,1.77000000000000,1.87000000000000,1.98000000000000,2.03000000000000,2.04000000000000,1.91000000000000,1.71000000000000,1.44000000000000,1.19000000000000,0.970000000000000,0.920000000000000,1.02000000000000,1.25000000000000,1.50000000000000,1.68000000000000,1.76000000000000,1.88000000000000,1.97000000000000,1.97000000000000,2.06000000000000,2.02000000000000,1.91000000000000,1.86000000000000,1.92000000000000,2,1.97000000000000,1.99000000000000,2.06000000000000,2.05000000000000,2.07000000000000,2.08000000000000,2.05000000000000,1.98000000000000,1.85000000000000,1.87000000000000,1.94000000000000,2.09000000000000,2.34000000000000,2.55000000000000,2.75000000000000,2.85000000000000,3.05000000000000,3.27000000000000,3.32000000000000,3.20000000000000,3.01000000000000,2.95000000000000,2.91000000000000,2.75000000000000,2.77000000000000,2.94000000000000,3.12000000000000,3.28000000000000,3.44000000000000,3.35000000000000,3.21000000000000,3.28000000000000,3.23000000000000,3.15000000000000,3.24000000000000,3.16000000000000,3.18000000000000,3.29000000000000,3.21000000000000,3.14000000000000,3.17000000000000,3.29000000000000,3.36000000000000,3.36000000000000,3.27000000000000,3.16000000000000,3.01000000000000,2.84000000000000,2.63000000000000,2.45000000000000,2.36000000000000,2.31000000000000,2.33000000000000,2.40000000000000,2.50000000000000,2.62000000000000,2.61000000000000,2.50000000000000,2.27000000000000,2.02000000000000,1.72000000000000,1.53000000000000,1.53000000000000,1.62000000000000,1.71000000000000,1.72000000000000,1.90000000000000,2.14000000000000,2.26000000000000,2.28000000000000,2.14000000000000,1.86000000000000,1.60000000000000,1.43000000000000,1.42000000000000,1.55000000000000,1.73000000000000,2.01000000000000,2.36000000000000,2.55000000000000,2.74000000000000,2.84000000000000,2.82000000000000,2.55000000000000,2.16000000000000,1.83000000000000,1.65000000000000,1.79000000000000,2.03000000000000,2.31000000000000,2.58000000000000,2.94000000000000,3.27000000000000,3.64000000000000,3.53000000000000,3.32000000000000,2.99000000000000,2.62000000000000,2.27000000000000,2.07000000000000,2.19000000000000,2.40000000000000,2.56000000000000,2.75000000000000,3.02000000000000,3.09000000000000,2.98000000000000,2.74000000000000,2.40000000000000,1.96000000000000,1.59000000000000,1.42000000000000,1.58000000000000,1.92000000000000,2.22000000000000,2.49000000000000,2.70000000000000,2.80000000000000,2.82000000000000,2.69000000000000,2.39000000000000,1.97000000000000,1.54000000000000,1.10000000000000,0.990000000000000,1.25000000000000,1.59000000000000,1.87000000000000,2.14000000000000,2.35000000000000,2.36000000000000,2.21000000000000,1.89000000000000,1.53000000000000,1.18000000000000,0.830000000000000,0.630000000000000,0.520000000000000,0.650000000000000,1.06000000000000,1.32000000000000,1.51000000000000,1.65000000000000,1.75000000000000,1.69000000000000,1.48000000000000,1.15000000000000,0.740000000000000,0.420000000000000,0.180000000000000,0.0500000000000000,0.300000000000000,0.680000000000000,1.23000000000000,1.89000000000000,2.18000000000000,1.98000000000000,1.67000000000000,1.26000000000000,0.810000000000000,0.520000000000000,0.400000000000000,0.560000000000000,0.810000000000000,1.21000000000000,1.73000000000000,2.03000000000000,2.11000000000000,1.99000000000000,1.73000000000000,1.37000000000000,1,0.720000000000000,0.580000000000000,0.570000000000000,0.920000000000000,1.35000000000000,1.79000000000000,2.18000000000000,2.38000000000000,2.40000000000000,2.24000000000000,1.90000000000000,1.36000000000000,0.910000000000000,0.580000000000000,0.480000000000000,0.650000000000000,0.990000000000000,1.40000000000000,1.73000000000000,1.94000000000000,1.95000000000000,1.75000000000000,1.41000000000000,0.960000000000000,0.570000000000000,0.330000000000000,0.300000000000000,0.500000000000000,0.860000000000000,1.29000000000000,1.73000000000000,2.04000000000000,2.17000000000000,2.02000000000000,1.71000000000000,1.25000000000000,0.790000000000000,0.470000000000000,0.400000000000000,0.590000000000000,0.880000000000000,1.21000000000000];
//var n=0;
var data = [Math.random() * 150];
var now = new Date(base);
var add=(function(){
var counter=0;
return function(){
return counter+=1;
}
})()
function addData(shift) {
var ans = [now.getHours(), now.getMinutes(), now.getSeconds()].join(':');
date.push(ans);
data.push(npc[add()]);
//data.push(Math.random());
if (shift) {
date.shift();
data.shift();
}
now = new Date(+new Date(now) + oneDay);
}
for (var i = 1; i < 100; i++) {
addData();
}
var option = {
tooltip : {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
grid: {
left: '10%',
right: '10%',
bottom: '6%',
containLabel:false
},
xAxis: {
name:'Time',
type: 'category',
boundaryGap: false,
data: date
},
yAxis: {
name:'Elevation(ft)',
boundaryGap: [0, '50%'],
type: 'value'
},
series: [
{
name:'Elevation(ft)',
type:'line',
smooth:true,
symbol: 'none',
stack: 'a',
color: 'rgba(0,0,0,0.3)',
areaStyle: {
normal: {
color:'#4682B4'
}
},
data: data
}
]
};
setInterval(function () {
addData(true);
myChart.setOption({
xAxis: {
data: date
},
series: [{
name:'Elevation(ft)',
data: data
}]
});
}, 1000);
//使用制定的配置项和数据显示图表
myChart.setOption(option);
</script>
</html>