添加柱状图legend属性

This commit is contained in:
Cool 2024-04-24 17:12:42 +08:00
parent 7fc0f45a6a
commit 9941a2d725
1 changed files with 4 additions and 2 deletions

View File

@ -403,7 +403,7 @@ export default {
} }
console.log(yData, "yData") console.log(yData, "yData")
seriesData.push({ seriesData.push({
name: i + '级累计总通过率', name: i ,
type: 'bar', type: 'bar',
// //
barWidth: 25, barWidth: 25,
@ -459,7 +459,9 @@ export default {
title: { title: {
text: "本批次学院通过率排名", text: "本批次学院通过率排名",
}, },
// legend: legendData, legend: {
},
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {