diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index 6e124e8..69cebdb 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -439,7 +439,7 @@ const fetchTeacherbData = async (type) => { updateResearcherChart(); } else if (type === 2) { studyData.value = { - datax: keyFields.map(item => ({ name: item.fieldName})), + datax: keyFields.map(item => ({ name: item.fieldName,max: Math.max(...datay)})), datay }; updateStudyChart();