forked from FrontierSetter/Blue_2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_4.html
444 lines (411 loc) · 11.6 KB
/
index_4.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<title>大屏数据可视化 - 模板</title>
<link rel="stylesheet" href="css/app.css" />
<!-- JQuery -->
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- 弹出窗口 -->
<link rel="stylesheet" href="css/hover_window_2.css" />
<link rel="stylesheet" href="css/hover_window.css" />
<script type="text/javascript" src="js/hover_window_2.js"></script>
<!-- echarts -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
<!-- semantic UI -->
<link href="https://cdn.bootcdn.net/ajax/libs/semantic-ui/2.4.1/components/icon.css" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/semantic-ui/2.4.1/components/button.css" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/semantic-ui/2.4.1/components/table.css" rel="stylesheet">
</head>
<body>
<div class="header">
<h1 class="header-title">上海市质量监管状况分析</h1>
</div>
<div class="wrapper">
<div class="content">
<div class="col col-l">
<div class="xpanel-wrapper xpanel-wrapper-50">
<div class="xpanel xpanel-l-t">
<div class="title">2012-2017年质量监督执法情况(缺2017年数据) <i class="edit outline icon" onclick="popBoxSuffix('_1_1')"></i></div>
<div id="container_1_1" style="height: 100%"></div>
</div>
</div>
<div class="xpanel-wrapper xpanel-wrapper-50">
<div class="xpanel xpanel-l-b">
<div class="title">2012-2017年食品安全执法检查次数(单位 万户次) <i class="edit outline icon" onclick="popBoxSuffix('_1_1')"></i></div>
<div id="container_2_1" style="height: 100%"></div>
</div>
</div>
</div>
<div class="col col-c">
<div class="xpanel-wrapper xpanel-wrapper-50">
<div class="xpanel xpanel-c-t">
<div class="title">2008-2017年上海市产品质量监督抽查合格率 <i class="edit outline icon" onclick="popBoxSuffix('_1_1')"></i></div>
<div id="container_1_2" style="height: 100%"></div>
</div>
</div>
<div class="xpanel-wrapper xpanel-wrapper-50">
<div class="xpanel xpanel-c-b">
<div class="title">2007-2017年上海市国家监督抽查及市监督抽查合格率 <i class="edit outline icon" onclick="popBoxSuffix('_1_1')"></i></div>
<div id="container_2_2" style="height: 100%"></div>
</div>
</div>
</div>
<div class="col col-r">
<div class="xpanel-wrapper xpanel-wrapper-50">
<div class="xpanel xpanel-r-t">
<div class="title">2009-2017年上海市各类产品质量监督抽查合格率 <i class="edit outline icon" onclick="popBoxSuffix('_1_3')"></i></div>
<div id="container_1_3" style="height: 100%"></div>
</div>
</div>
<div class="xpanel-wrapper xpanel-wrapper-50">
<div class="xpanel xpanel-r-t">
<div class="title">2009-2015年特种设备安全监督执法情况 <i class="edit outline icon" onclick="popBoxSuffix('_1_1')"></i></div>
<div id="container_2_3" style="height: 100%"></div>
</div>
</div>
</div>
</div>
</div>
<div id="popLayer"></div>
<div id="popBox_1_1" class="popBox">
<!-- <div class="close">
<a href="javascript:void(0)" onclick="closeBoxSuffix('_1_1')">关闭</a>
</div> -->
<div class="content" style="overflow: scroll; max-height: 80%;">
<table id="table_1_1" class="ui definition table">
<thead>
<tr><th></th>
<th>Arguments</th>
</tr></thead>
<tbody>
<tr>
<td>reset rating</td>
<td>
<div class="ui input">
<input type="text" placeholder="搜索...">
</div>
</td>
</tr>
<tr>
<td>set rating</td>
<td>
<div class="ui input">
<input type="text" placeholder="搜索...">
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="dlg_bottom">
<button class="ui primary button" onclick="alert('submit success!')">
保存
</button>
<button class="ui button" onclick="closeBoxSuffix('_1_1')">
关闭
</button>
<button class="ui button" onclick="addTableRow('_1_1')">
添加一行
</button>
</div>
</div>
<script>
// initHoverWindowBySuffix('_1_1', submitHandler, function(){hideDialogID('_1_1')});
</script>
</body>
</html>
<script>
var dom = document.getElementById("container_1_1");
var myChart = echarts.init(dom);
var app = {};
var option = {
legend : {
//菜单字体样式
textStyle : {
color : 'white'
},
//菜单位置
x : 'right',
//菜单数据
data : ['立案查办案件(起)', '案件信息公开(起)', '涉案金额(亿元)','罚没款(万元)','移送公安机关案件(起)','捣毁假冒窝点(个)']
},
xAxis: [
{
type: 'category',
data: ['2012','2013','2014','2015','2016']
}
],
yAxis: {
type: 'value'
},
series: [
{
name:'立案查办案件(起)',
data: [984, 810,673,1102,1980],
type: 'line',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
},
{
name: '案件信息公开(起)',
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
},
data: [0,0,20,469,974]
},
{
name: '涉案金额(亿元)',
type: 'line',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
},
data: [1.58,1.72,3.78,1.2,1.78]
},
{
name: '罚没款(万元)',
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
},
data: [6781,5413,4607,4020,5917]
},
{
name: '移送公安机关案件(起)',
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
},
data: [25, 0,23,14,6]
},
{
name: '捣毁假冒窝点(个)',
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
},
data: [68,139,20,32,0]
}
]
};
if (option && typeof option === 'object') {
myChart.setOption(option);
}
var dom2 = document.getElementById("container_1_2");
var myChart2 = echarts.init(dom2);
var app2 = {};
var option2 = {
legend : {
//菜单字体样式
textStyle : {
color : 'white'
},
//菜单位置
x : 'right',
//菜单数据
data : ['上海市产品','外省市产品']
},
xAxis: {
type: 'category',
data: ['2008','2009','2010','2011','2012', '2013', '2014', '2015', '2016', '2017']
},
yAxis: {
type: 'value'
},
series: [{
name:'上海市产品',
data: [0.841,0.87,0.89,0.892,0.899,0.92,0.894,0.91,0.923,0.921],
type: 'line',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
},{
name:'外省市产品',
data: [0.713,0.83,0.837,0.85,0.855,0.873,0.8034,0.84,0.843,0.828],
type: 'line',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}]
};
if (option2 && typeof option2 === 'object') {
myChart2.setOption(option2);
}
var dom3 = document.getElementById("container_1_3");
var myChart3 = echarts.init(dom3);
var app3 = {};
var option3 = {
legend : {
//菜单字体样式
textStyle : {
color : 'white'
},
//菜单位置
x : 'right',
//菜单数据
data : ['农资产品','工业生产资料','日用消费品']
},
xAxis: {
type: 'category',
data: ['2009','2010','2011','2012', '2013', '2014', '2015', '2016', '2017']
},
yAxis: {
type: 'value'
},
series: [{
name:'农资产品',
data: [0.885,1,0.915,0.915,0.98,0.993,0.917,0.951,0.969],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
},{
name:'工业生产资料',
data: [0.892,0.915,0.922,0.922,0.932,0.924,0.907,0.94,0.901],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
},{
name:'日用消费品',
data: [0.857,0.868,0.865,0.865,0.893,0.8687,0.865,0.872,0.851],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}]
};
if (option3 && typeof option3 === 'object') {
myChart3.setOption(option3);
}
var dom4 = document.getElementById("container_2_1");
var myChart4 = echarts.init(dom4);
var app4 = {};
var option4 = {
xAxis: {
type: 'category',
data: ['2012', '2013', '2014', '2015', '2016', '2017']
},
yAxis: {
type: 'value'
},
series: [{
data: [40, 55.5, 30.8, 50.3, 45.9, 0],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}]
};
if (option4 && typeof option4 === 'object') {
myChart4.setOption(option4);
}
var dom5 = document.getElementById("container_2_2");
var myChart5 = echarts.init(dom5);
var app5 = {};
var option5 = {
legend : {
//菜单字体样式
textStyle : {
color : 'white'
},
//菜单位置
x : 'right',
//菜单数据
data : ['国抽','市抽']
},
xAxis: {
type: 'category',
data: ['2007','2008','2009','2010','2011','2012', '2013', '2014', '2015', '2016', '2017']
},
yAxis: {
type: 'value'
},
series: [{
name:'国抽',
data: [0.836,0.871,0.926,0.922,0.94,0.92,0.932,0.931,0.907,0.924,0.923],
type: 'line',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
},{
name:'市抽',
data: [0.765,0.805,0.853,0.88,0.892,0.888,0.913,0.894,0.887,0.892,0.881],
type: 'line',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}]
};
if (option5 && typeof option5 === 'object') {
myChart5.setOption(option5);
}
var dom6 = document.getElementById("container_2_3");
var myChart6 = echarts.init(dom6);
var app6 = {};
var option6 = {
legend : {
//菜单字体样式
textStyle : {
color : 'white'
},
//菜单位置
x : 'right',
//菜单数据
data : ['安全检查人员/百人次','发出安全监察指令书','处罚罚金(万元)']
},
xAxis: {
type: 'category',
data: ['2009','2010','2011','2012', '2013', '2014', '2015']
},
yAxis: {
type: 'value'
},
series: [{
name:'安全检查人员/百人次',
data: [168.93,221.82,111.12,144.92,755.6,0,1500],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
},{
name:'发出安全监察指令书',
data: [1278,1493,1405,1228,550,0,0],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
},{
name:'处罚罚金(万元)',
data: [265,514.1,555.7,422.38,151.258,0,1164],
type: 'bar',
showBackground: true,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}]
};
if (option6 && typeof option6 === 'object') {
myChart6.setOption(option6);
}
</script>