添加柱状图legend属性
This commit is contained in:
parent
7fc0f45a6a
commit
9941a2d725
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue