Skip to content

Commit 46caa1d

Browse files
committed
成绩变化与行为的探索
1 parent 0e4c962 commit 46caa1d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

api/routes/studentRecordAnalyze.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Description: In User Settings Edit
33
* @Author: your name
44
* @Date: 2019-09-25 16:33:09
5-
* @LastEditTime: 2019-10-31 18:33:00
5+
* @LastEditTime: 2019-12-10 15:32:04
66
* @LastEditors: Please set LastEditors
77
*/
88
let util = require('./util')
@@ -38,12 +38,12 @@ function studentRecordDataProcess(req, res, next) {
3838
// })
3939
// })
4040

41-
let arr = ["2906303032","2906306023","2906301017","2906302026","2906005010","2906301025","2906302014"]
42-
StuRecordAnalyze.find({ sems: 7,sid:{$in: arr}})
41+
let arr = ["2902002026","2902002029","2923104033","2908001014","2908002003","2901101007","2911103002","2903201005","2903001028","2903004020","2903005031","2902103033","2902104013","2902102002","2906305001","2906303035","2902002008","2902001028","2901309034","2901311008","2901102016","2907101024","2906002007","2906003022","2906005021","2901308022","2901305010","2901306019","2904203009","2908007023","2908005022","2908007012","2908008008","2908008033","2902113033","2904302002","2902107013","2907102027","2911103033"]
42+
StuRecordAnalyze.find({ sems: 2,sid:{$in: arr}})
4343

44-
// .sort({sid:-1})
44+
.sort({sid:-1})
4545
// .sort({size_food:-1})
46-
.sort({ size_library: -1 })
46+
// .sort({ size_library: -1 })
4747
// .sort({size_shower:-1})
4848
// .sort({size_hotwater:-1})
4949

src/components/graphs/BarCharts.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Description: 用于数据实验的模版barChart
33
* @Author: your name
44
* @Date: 2019-03-17 15:34:31
5-
* @LastEditTime: 2019-10-17 10:27:04
5+
* @LastEditTime: 2019-12-10 15:31:27
66
* @LastEditors: Please set LastEditors
77
*/
88
import React, { Component } from 'react'
@@ -112,7 +112,9 @@ export default class BarChart extends Component {
112112
data : data.xData,
113113
color: "#aaa",
114114
axisLabel:{
115-
color: '#fff'
115+
color: '#fff',
116+
interval:0,
117+
rotate:70,
116118
}
117119
}
118120
],
@@ -189,7 +191,7 @@ export default class BarChart extends Component {
189191
render() {
190192
return (
191193
<div className="parallel">
192-
<ReactEcharts option = {this.getOption(this.props.data)} style = {{height:500,width:1300}} />
194+
<ReactEcharts option = {this.getOption(this.props.data)} style = {{height:500,width:2000}} />
193195
</div>
194196
)
195197
}

0 commit comments

Comments
 (0)