Sfoglia il codice sorgente

fix(Student): 调整柱状图宽度为自适应最大宽度

将柱状图宽度从固定百分比改为最大80px的自适应宽度,以更好地处理不同数量的数据显示
SanHQin 4 giorni fa
parent
commit
a9307d2e42

+ 1 - 1
src/views/Student/components/choiceQuestionDetailDialog.vue

@@ -638,7 +638,7 @@ const setEchartsArea1 = () => {
           name: '',
           type: 'bar',
           data: [],
-          barWidth: '50%', // 柱体宽度缩小40%
+          barMaxWidth: 80, // 柱体最宽80px,数量多则自适应
           itemStyle: {
             color: 'rgba(252, 207, 0, 1)',
           },