-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
152 lines (147 loc) · 6.09 KB
/
index.html
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Index</title>
<script src="js/d3.js"></script>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-simple-slider"></script>
<link rel="stylesheet" href="css/index.css" />
<link
href="framework/font-awesome/css/font-awesome.min.css"
rel="stylesheet"
/>
<script src="js/index.js"></script>
</head>
<body>
<div class="wrapper">
<div class="statsBox">
<p class="title">海口市交通分析可视化系统</p>
<div class="stats">
<ul>
<li class="first">
<i class="fa fa-file-text-o"></i>
<p>日均订单量</p>
<p>64172</p>
</li>
<li class="second">
<i class="fa fa-car"></i>
<p>快车占比</p>
<p>99.06%</p>
</li>
<li class="third">
<i class="fa fa-money"></i>
<p>高价占比(费用>40¥)</p>
<p>6.69%</p>
</li>
<li class="fourth">
<i class="fa fa-road"></i>
<p>高时长占比(时长>30min)</p>
<p>7.51%</p>
</li>
</ul>
</div>
<ul class="legend">
<div class="barLegend">
<li class="first">
<i class="fa fa-square"></i>
最高气温
</li>
<li class="second">
<i class="fa fa-square"></i>
平均气温
</li>
<li class="third">
<i class="fa fa-square"></i>
最低气温
</li>
</div>
<div class="lineLegend">
<li class="first">
<i class="fa fa-square"></i>
平均订单量
</li>
<li class="second">
<i class="fa fa-square"></i>
平均里程数
</li>
</div>
</ul>
</div>
<div class="charts">
<div class="lineAndMap">
<div class="mapBox">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- 高德api -->
<div id="map"></div>
<div id="heatMap"></div>
<div id="startHex"></div>
<div id="destHex"></div>
<div id="timeSlider1"></div>
<div id="timeSlider2"></div>
<div id="timeSlider3"></div>
<div id="timeSlider4"></div>
<script src="./js/map.js"></script>
<script src="./js/heatMap.js"></script>
<script src="./js/start_hex.js"></script>
<script src="./js/dest_hex.js"></script>
<ul class="buttons">
<li>
<button onclick="toMap1()">订单点云图</button>
</li>
<li>
<button onclick="toMap2()">
订单距离热力图
</button>
</li>
<li>
<button onclick="toMap3()">
起始点蜂窝热力图
</button>
</li>
<li>
<button onclick="toMap4()">
目的地蜂窝热力图
</button>
</li>
</ul>
</div>
<div class="lineChart">
<div class="line">
<svg id="line" width="500" height="400"></svg>
</div>
<script
type="text/javascript"
src="js/hourlyStats.js"
></script>
<div class="button">
<div id="dataSetName"></div>
<button onclick="toggleData()">切换数据集</button>
</div>
</div>
</div>
<div class="barAndPie">
<div class="barChart">
<div class="barAndVerticalSlider">
<svg id="bar" width="500" height="280"></svg>
<div id="slider-vertical"></div>
</div>
<div id="slider"></div>
<div id="tooltip"></div>
<script
type="text/javascript"
src="js/bar_index.js"
></script>
</div>
<div class="pieChart">
<svg id="pie" width="430" height="280"></svg>
<script
type="text/javascript"
src="js/pieChart.js"
></script>
</div>
</div>
</div>
</div>
</body>
</html>