Commit 0cf41ab0 by chenshu

fix:优化样式

parent 28d9ed5f
......@@ -112,9 +112,6 @@ class Home extends React.Component {
},
time: {
formatter: (val) => {
if (val == 8) {
return '7日外'
}
return `${val}`
},
range: [0.06, 0.94]
......@@ -160,13 +157,13 @@ class Home extends React.Component {
this._chart.line().position('time*studyNum').color('#5289FA').tooltip('time*studyNum', function( time, studyNum){
return {
name: '学习人数',
value: studyNum
value: studyNum + '人'
}
});
this._chart.line().position('time*studyTime').color('#FFB714').tooltip('time*studyTime', function( time, studyTime){
return {
name: '人均学习时长',
value: studyTime
value: studyTime + '分钟'
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment