Procházet zdrojové kódy

班级成绩对比-全科

wzl_h
wangzl před 2 roky
rodič
revize
1736677ffb

+ 448
- 12
js/scoreAnalysis/section_2_class_all.js Zobrazit soubor

@@ -7,10 +7,10 @@ function initClassScoreEcharts() {
7 7
     "八年级三班",
8 8
     "八年级四班"
9 9
   ];
10
-  var series_full_data = [12, 20, 15, 8, 7];
11
-  var series_max_data = [12, 20, 15, 8, 7];
12
-  var series_min_data = [12, 20, 15, 8, 7];
13
-  var series_avg_data = [12, 20, 15, 8, 7];
10
+  var series_full_data = [100, 100, 100, 100, 100];
11
+  var series_max_data = [95, 80, 85, 97, 85];
12
+  var series_min_data = [55, 60, 40, 30, 40];
13
+  var series_avg_data = [70, 65, 60, 80, 60];
14 14
   var option = {
15 15
     animation: false,
16 16
     title: {
@@ -23,12 +23,12 @@ function initClassScoreEcharts() {
23 23
         fontWeight: 500,
24 24
       },
25 25
     },
26
-    color: ["#5C99FF"],
26
+    color: ["#5C99FF", "#FF5F56", "#5EC5C8", "#F1982B"],
27 27
     legend: {
28 28
       itemWidth: $.UnitUtil.mm2px(2),
29 29
       itemHeight: $.UnitUtil.mm2px(2),
30 30
       top: "bottom",
31
-      data: ["违纪人数"],
31
+      data: ["满分", "最高分", "最低分", "平均分"],
32 32
     },
33 33
     grid: {
34 34
       top: $.UnitUtil.mm2px(10),
@@ -84,7 +84,7 @@ function initClassScoreEcharts() {
84 84
     ],
85 85
     series: [
86 86
       {
87
-        name: "违纪人数",
87
+        name: "满分",
88 88
         type: "bar",
89 89
         barWidth: $.UnitUtil.mm2px(5),
90 90
         // 柱状图最小高度
@@ -100,8 +100,65 @@ function initClassScoreEcharts() {
100 100
             formatter: "{c}",
101 101
           },
102 102
         },
103
-        data: series_data,
103
+        data: series_full_data,
104
+      },
105
+      {
106
+        name: "最高分",
107
+        type: "bar",
108
+        barWidth: $.UnitUtil.mm2px(5),
109
+        // 柱状图最小高度
110
+        barMinHeight: $.UnitUtil.mm2px(2),
111
+        barGap: 0,
112
+        label: {
113
+          normal: {
114
+            show: true,
115
+            align: "center",
116
+            verticalAlign: "bottom",
117
+            position: "top",
118
+            distance: 0,
119
+            formatter: "{c}",
120
+          },
121
+        },
122
+        data: series_max_data,
123
+      },
124
+      {
125
+        name: "最低分",
126
+        type: "bar",
127
+        barWidth: $.UnitUtil.mm2px(5),
128
+        // 柱状图最小高度
129
+        barMinHeight: $.UnitUtil.mm2px(2),
130
+        barGap: 0,
131
+        label: {
132
+          normal: {
133
+            show: true,
134
+            align: "center",
135
+            verticalAlign: "bottom",
136
+            position: "top",
137
+            distance: 0,
138
+            formatter: "{c}",
139
+          },
140
+        },
141
+        data: series_min_data,
104 142
       },
143
+      {
144
+        name: "平均分",
145
+        type: "bar",
146
+        barWidth: $.UnitUtil.mm2px(5),
147
+        // 柱状图最小高度
148
+        barMinHeight: $.UnitUtil.mm2px(2),
149
+        barGap: 0,
150
+        label: {
151
+          normal: {
152
+            show: true,
153
+            align: "center",
154
+            verticalAlign: "bottom",
155
+            position: "top",
156
+            distance: 0,
157
+            formatter: "{c}",
158
+          },
159
+        },
160
+        data: series_avg_data,
161
+      }
105 162
     ],
106 163
   };
107 164
   var myEcharts = echarts.init(document.querySelector(".section_2_class_all #classScoreEcharts"));
@@ -110,18 +167,397 @@ function initClassScoreEcharts() {
110 167
 }
111 168
 // 各班优秀率、良好率、及格率、低分率对比分析
112 169
 function initClassRateEcharts() {
113
-  
170
+  var xAxis_data = [
171
+    "全年级",
172
+    "八年级一班",
173
+    "八年级二班",
174
+    "八年级三班",
175
+    "八年级四班"
176
+  ];
177
+  var series_xy_data = [80.45, 77.06, 89, 78.6, 80.6];
178
+  var series_lh_data = [45.45, 47.06, 50, 48.6, 60.6];
179
+  var series_jg_data = [80.45, 77.06, 89, 78.6, 80.6];
180
+  var series_df_data = [80.45, 77.06, 89, 78.6, 80.6];
181
+  var option = {
182
+    animation: false,
183
+    title: {
184
+      text: "%",
185
+      x: "left",
186
+      y: "top",
187
+      textStyle: {
188
+        color: "#5F6E82",
189
+        fontSize: $.UnitUtil.mm2px(3),
190
+        fontWeight: 500,
191
+      },
192
+    },
193
+    color: ["#5C99FF", "#FF5F56", "#5EC5C8", "#F1982B"],
194
+    legend: {
195
+      itemWidth: $.UnitUtil.mm2px(2),
196
+      itemHeight: $.UnitUtil.mm2px(2),
197
+      top: "bottom",
198
+      data: ["优秀率", "良好率", "及格率", "低分率"],
199
+    },
200
+    grid: {
201
+      top: $.UnitUtil.mm2px(10),
202
+      left: 0,
203
+      right: 0,
204
+      bottom: $.UnitUtil.mm2px(8),
205
+      containLabel: true,
206
+    },
207
+    xAxis: [
208
+      {
209
+        type: "category",
210
+        data: xAxis_data,
211
+        axisLabel: {
212
+          color: "#5F6E82", //更改坐标轴文字颜色
213
+          interval: 0
214
+        },
215
+        axisTick: {
216
+          alignWithLabel: true,
217
+        },
218
+        boundaryGap: true,
219
+        triggerEvent: true,
220
+        axisLine: {
221
+          show: true, //是否显示轴线
222
+          lineStyle: {
223
+            color: "#DADADA", //刻度线的颜色
224
+          },
225
+        },
226
+      },
227
+    ],
228
+    yAxis: [
229
+      {
230
+        type: "value",
231
+        axisTick: {
232
+          show: false, //刻度
233
+        },
234
+        axisLine: {
235
+          show: false, //是否显示轴线
236
+          lineStyle: {
237
+            color: "#DADADA", //刻度线的颜色
238
+          },
239
+        },
240
+        splitLine: {
241
+          //网格线
242
+          lineStyle: {
243
+            type: "dotted", //设置网格线类型 dotted:虚线   solid:实线
244
+          },
245
+          show: true, //隐藏或显示
246
+        },
247
+        axisLabel: {
248
+          color: "#5F6E82", //更改坐标轴文字颜色
249
+        },
250
+      },
251
+    ],
252
+    series: [
253
+      {
254
+        name: "优秀率",
255
+        type: "bar",
256
+        barWidth: $.UnitUtil.mm2px(5),
257
+        // 柱状图最小高度
258
+        barMinHeight: $.UnitUtil.mm2px(2),
259
+        barGap: 0,
260
+        label: {
261
+          normal: {
262
+            show: true,
263
+            align: "center",
264
+            verticalAlign: "bottom",
265
+            position: "top",
266
+            distance: 0,
267
+            formatter: "{c}",
268
+          },
269
+        },
270
+        data: series_xy_data,
271
+      },
272
+      {
273
+        name: "良好率",
274
+        type: "bar",
275
+        barWidth: $.UnitUtil.mm2px(5),
276
+        // 柱状图最小高度
277
+        barMinHeight: $.UnitUtil.mm2px(2),
278
+        barGap: 0,
279
+        label: {
280
+          normal: {
281
+            show: true,
282
+            align: "center",
283
+            verticalAlign: "bottom",
284
+            position: "top",
285
+            distance: 0,
286
+            formatter: "{c}",
287
+          },
288
+        },
289
+        data: series_lh_data,
290
+      },
291
+      {
292
+        name: "及格率",
293
+        type: "bar",
294
+        barWidth: $.UnitUtil.mm2px(5),
295
+        // 柱状图最小高度
296
+        barMinHeight: $.UnitUtil.mm2px(2),
297
+        barGap: 0,
298
+        label: {
299
+          normal: {
300
+            show: true,
301
+            align: "center",
302
+            verticalAlign: "bottom",
303
+            position: "top",
304
+            distance: 0,
305
+            formatter: "{c}",
306
+          },
307
+        },
308
+        data: series_jg_data,
309
+      },
310
+      {
311
+        name: "低分率",
312
+        type: "bar",
313
+        barWidth: $.UnitUtil.mm2px(5),
314
+        // 柱状图最小高度
315
+        barMinHeight: $.UnitUtil.mm2px(2),
316
+        barGap: 0,
317
+        label: {
318
+          normal: {
319
+            show: true,
320
+            align: "center",
321
+            verticalAlign: "bottom",
322
+            position: "top",
323
+            distance: 0,
324
+            formatter: "{c}",
325
+          },
326
+        },
327
+        data: series_df_data,
328
+      }
329
+    ],
330
+  };
331
+  var myEcharts = echarts.init(document.querySelector(".section_2_class_all #classRateEcharts"));
332
+  myEcharts.clear();
333
+  myEcharts.setOption(option);
114 334
 }
115 335
 // 各班实考人数、缺考人数对比
116 336
 function initClassExamEcharts() {
117
-  
337
+  var xAxis_data = [
338
+    "全年级",
339
+    "八年级一班",
340
+    "八年级二班",
341
+    "八年级三班",
342
+    "八年级四班"
343
+  ];
344
+  var series_sk_data = [100, 100, 100, 100, 100];
345
+  var series_qk_data = [95, 80, 85, 97, 85];
346
+  var option = {
347
+    animation: false,
348
+    title: {
349
+      text: "人",
350
+      x: "left",
351
+      y: "top",
352
+      textStyle: {
353
+        color: "#5F6E82",
354
+        fontSize: $.UnitUtil.mm2px(3),
355
+        fontWeight: 500,
356
+      },
357
+    },
358
+    color: ["#5C99FF", "#FF5F56"],
359
+    legend: {
360
+      itemWidth: $.UnitUtil.mm2px(2),
361
+      itemHeight: $.UnitUtil.mm2px(2),
362
+      top: "bottom",
363
+      data: ["实考人数", "缺考人数"],
364
+    },
365
+    grid: {
366
+      top: $.UnitUtil.mm2px(10),
367
+      left: 0,
368
+      right: 0,
369
+      bottom: $.UnitUtil.mm2px(8),
370
+      containLabel: true,
371
+    },
372
+    xAxis: [
373
+      {
374
+        type: "category",
375
+        data: xAxis_data,
376
+        axisLabel: {
377
+          color: "#5F6E82", //更改坐标轴文字颜色
378
+          interval: 0
379
+        },
380
+        axisTick: {
381
+          alignWithLabel: true,
382
+        },
383
+        boundaryGap: true,
384
+        triggerEvent: true,
385
+        axisLine: {
386
+          show: true, //是否显示轴线
387
+          lineStyle: {
388
+            color: "#DADADA", //刻度线的颜色
389
+          },
390
+        },
391
+      },
392
+    ],
393
+    yAxis: [
394
+      {
395
+        type: "value",
396
+        axisTick: {
397
+          show: false, //刻度
398
+        },
399
+        axisLine: {
400
+          show: false, //是否显示轴线
401
+          lineStyle: {
402
+            color: "#DADADA", //刻度线的颜色
403
+          },
404
+        },
405
+        splitLine: {
406
+          //网格线
407
+          lineStyle: {
408
+            type: "dotted", //设置网格线类型 dotted:虚线   solid:实线
409
+          },
410
+          show: true, //隐藏或显示
411
+        },
412
+        axisLabel: {
413
+          color: "#5F6E82", //更改坐标轴文字颜色
414
+        },
415
+      },
416
+    ],
417
+    series: [
418
+      {
419
+        name: "实考人数",
420
+        type: "bar",
421
+        barWidth: $.UnitUtil.mm2px(5),
422
+        // 柱状图最小高度
423
+        barMinHeight: $.UnitUtil.mm2px(2),
424
+        barGap: 0,
425
+        label: {
426
+          normal: {
427
+            show: true,
428
+            align: "center",
429
+            verticalAlign: "bottom",
430
+            position: "top",
431
+            distance: 0,
432
+            formatter: "{c}",
433
+          },
434
+        },
435
+        data: series_sk_data,
436
+      },
437
+      {
438
+        name: "缺考人数",
439
+        type: "bar",
440
+        barWidth: $.UnitUtil.mm2px(5),
441
+        // 柱状图最小高度
442
+        barMinHeight: $.UnitUtil.mm2px(2),
443
+        barGap: 0,
444
+        label: {
445
+          normal: {
446
+            show: true,
447
+            align: "center",
448
+            verticalAlign: "bottom",
449
+            position: "top",
450
+            distance: 0,
451
+            formatter: "{c}",
452
+          },
453
+        },
454
+        data: series_qk_data,
455
+      }
456
+    ],
457
+  };
458
+  var myEcharts = echarts.init(document.querySelector(".section_2_class_all #classExamEcharts"));
459
+  myEcharts.clear();
460
+  myEcharts.setOption(option);
118 461
 }
119 462
 // 各班标准差对比分析
120 463
 function initClassStdEcharts() {
121
-  
464
+  var xAxis_data = [
465
+    "全年级",
466
+    "八年级一班",
467
+    "八年级二班",
468
+    "八年级三班",
469
+    "八年级四班"
470
+  ];
471
+  var series_data = [12, 10, 3, 14, 7];
472
+  var option = {
473
+    animation: false,
474
+    color: ["#5C99FF"],
475
+    legend: {
476
+      itemWidth: $.UnitUtil.mm2px(2),
477
+      itemHeight: $.UnitUtil.mm2px(2),
478
+      top: "bottom",
479
+      data: ["标准差"],
480
+    },
481
+    grid: {
482
+      top: $.UnitUtil.mm2px(10),
483
+      left: 0,
484
+      right: 0,
485
+      bottom: $.UnitUtil.mm2px(8),
486
+      containLabel: true,
487
+    },
488
+    xAxis: [
489
+      {
490
+        type: "category",
491
+        data: xAxis_data,
492
+        axisLabel: {
493
+          color: "#5F6E82", //更改坐标轴文字颜色
494
+          interval: 0
495
+        },
496
+        axisTick: {
497
+          alignWithLabel: true,
498
+        },
499
+        boundaryGap: true,
500
+        triggerEvent: true,
501
+        axisLine: {
502
+          show: true, //是否显示轴线
503
+          lineStyle: {
504
+            color: "#DADADA", //刻度线的颜色
505
+          },
506
+        },
507
+      },
508
+    ],
509
+    yAxis: [
510
+      {
511
+        type: "value",
512
+        axisTick: {
513
+          show: false, //刻度
514
+        },
515
+        axisLine: {
516
+          show: false, //是否显示轴线
517
+          lineStyle: {
518
+            color: "#DADADA", //刻度线的颜色
519
+          },
520
+        },
521
+        splitLine: {
522
+          //网格线
523
+          lineStyle: {
524
+            type: "dotted", //设置网格线类型 dotted:虚线   solid:实线
525
+          },
526
+          show: true, //隐藏或显示
527
+        },
528
+        axisLabel: {
529
+          color: "#5F6E82", //更改坐标轴文字颜色
530
+        },
531
+      },
532
+    ],
533
+    series: [
534
+      {
535
+        name: "标准差",
536
+        type: "bar",
537
+        barWidth: $.UnitUtil.mm2px(5),
538
+        // 柱状图最小高度
539
+        barMinHeight: $.UnitUtil.mm2px(2),
540
+        barGap: 0,
541
+        label: {
542
+          normal: {
543
+            show: true,
544
+            align: "center",
545
+            verticalAlign: "bottom",
546
+            position: "top",
547
+            distance: 0,
548
+            formatter: "{c}",
549
+          },
550
+        },
551
+        data: series_data,
552
+      }
553
+    ]
554
+  };
555
+  var myEcharts = echarts.init(document.querySelector(".section_2_class_all #classStdEcharts"));
556
+  myEcharts.clear();
557
+  myEcharts.setOption(option);
122 558
 }
123 559
 $(function () {
124
-  // initClassScoreEcharts();
560
+  initClassScoreEcharts();
125 561
   initClassRateEcharts();
126 562
   initClassExamEcharts();
127 563
   initClassStdEcharts();

+ 2
- 2
js/section_2.js Zobrazit soubor

@@ -4,8 +4,8 @@ $(function() {
4 4
   console.log("section_2:parameter", parameter);
5 5
 
6 6
   var sectionsHtmlArr = [
7
-    // "section_2_class_all",
8
-    // "section_2_class_single",
7
+    "section_2_class_all",
8
+    "section_2_class_single",
9 9
     "section_2_level",
10 10
     "section_2_part",
11 11
     "section_2_lin_rank",

+ 76
- 0
sections/scoreAnalysis/section_2_class_all.html Zobrazit soubor

@@ -56,6 +56,82 @@
56 56
     <h4 class="section_title_4">1.1.4 各班标准差对比分析</h4>
57 57
     <div id="classStdEcharts" style="margin: 0 4mm 4mm;height: 63mm;"></div>
58 58
     <h4 class="section_title_4">1.1.5 班级全科整体分析</h4>
59
+    <table border="1" class="my_table">
60
+      <thead>
61
+        <tr>
62
+          <th>班级</th>
63
+          <th>实考人数</th>
64
+          <th>缺考人数</th>
65
+          <th>满分</th>
66
+          <th>最高分</th>
67
+          <th>最低分</th>
68
+          <th>平均分</th>
69
+          <th>优秀率</th>
70
+          <th>良好率</th>
71
+          <th>及格率</th>
72
+          <th>低分率</th>
73
+          <th>标准差</th>
74
+        </tr>
75
+      </thead>
76
+      <tbody>
77
+        <tr>
78
+          <td><div class="my_cell">全年级</div></td>
79
+          <td><div class="my_cell">5</div></td>
80
+          <td><div class="my_cell">4%</div></td>
81
+          <td><div class="my_cell">5</div></td>
82
+          <td><div class="my_cell">4%</div></td>
83
+          <td><div class="my_cell">5</div></td>
84
+          <td><div class="my_cell">4%</div></td>
85
+          <td><div class="my_cell">5</div></td>
86
+          <td><div class="my_cell">4%</div></td>
87
+          <td><div class="my_cell">5</div></td>
88
+          <td><div class="my_cell">4%</div></td>
89
+          <td><div class="my_cell">4%</div></td>
90
+        </tr>
91
+        <tr>
92
+          <td><div class="my_cell">八年级一班</div></td>
93
+          <td><div class="my_cell">5</div></td>
94
+          <td><div class="my_cell">4%</div></td>
95
+          <td><div class="my_cell">5</div></td>
96
+          <td><div class="my_cell">4%</div></td>
97
+          <td><div class="my_cell">5</div></td>
98
+          <td><div class="my_cell">4%</div></td>
99
+          <td><div class="my_cell">5</div></td>
100
+          <td><div class="my_cell">4%</div></td>
101
+          <td><div class="my_cell">5</div></td>
102
+          <td><div class="my_cell">4%</div></td>
103
+          <td><div class="my_cell">4%</div></td>
104
+        </tr>
105
+        <tr>
106
+          <td><div class="my_cell">八年级一班</div></td>
107
+          <td><div class="my_cell">5</div></td>
108
+          <td><div class="my_cell">4%</div></td>
109
+          <td><div class="my_cell">5</div></td>
110
+          <td><div class="my_cell">4%</div></td>
111
+          <td><div class="my_cell">5</div></td>
112
+          <td><div class="my_cell">4%</div></td>
113
+          <td><div class="my_cell">5</div></td>
114
+          <td><div class="my_cell">4%</div></td>
115
+          <td><div class="my_cell">5</div></td>
116
+          <td><div class="my_cell">4%</div></td>
117
+          <td><div class="my_cell">4%</div></td>
118
+        </tr>
119
+        <tr>
120
+          <td><div class="my_cell">八年级一班</div></td>
121
+          <td><div class="my_cell">5</div></td>
122
+          <td><div class="my_cell">4%</div></td>
123
+          <td><div class="my_cell">5</div></td>
124
+          <td><div class="my_cell">4%</div></td>
125
+          <td><div class="my_cell">5</div></td>
126
+          <td><div class="my_cell">4%</div></td>
127
+          <td><div class="my_cell">5</div></td>
128
+          <td><div class="my_cell">4%</div></td>
129
+          <td><div class="my_cell">5</div></td>
130
+          <td><div class="my_cell">4%</div></td>
131
+          <td><div class="my_cell">4%</div></td>
132
+        </tr>
133
+      </tbody>
134
+    </table>
59 135
   </div>
60 136
   <script src="../../js/scoreAnalysis/section_2_class_all.js"></script>
61 137
 </body>

Načítá se…
Zrušit
Uložit