删掉图例具体内容

main
A 2022-07-14 23:15:47 +08:00
parent da8c9e7801
commit 3e386b5d64
2 changed files with 18 additions and 18 deletions

View File

@ -63,9 +63,9 @@ export default {
console.log(isAllZero, "isAllZero") console.log(isAllZero, "isAllZero")
let option = null let option = null
if (isAllZero == true) { if (isAllZero == true) {
for (let i = 0; i < this.dataList.length; i++) { // for (let i = 0; i < this.dataList.length; i++) {
this.dataList[i].name = this.dataList[i].name + "" + this.dataList[i].value + "人" // this.dataList[i].name = this.dataList[i].name + "" + this.dataList[i].value + ""
} // }
console.log(this.dataList, "this.dataListgroup") console.log(this.dataList, "this.dataListgroup")
option = { option = {
tooltip: { tooltip: {
@ -87,7 +87,7 @@ export default {
{ {
name: '统计', name: '统计',
type: 'pie', type: 'pie',
center: ['35%', '55%'], center: ['45%', '55%'],
// radius: ['40%', '70%'], // radius: ['40%', '70%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
label: { label: {
@ -115,9 +115,9 @@ export default {
] ]
}; };
} else { } else {
for (let i = 0; i < this.dataList.length; i++) { // for (let i = 0; i < this.dataList.length; i++) {
this.dataList[i].name = this.dataList[i].name + "" + this.dataList[i].value + "人" // this.dataList[i].name = this.dataList[i].name + "" + this.dataList[i].value + ""
} // }
option = { option = {
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
@ -126,7 +126,7 @@ export default {
{ {
name: '统计', name: '统计',
type: 'pie', type: 'pie',
center: ['35%', '55%'], center: ['45%', '55%'],
// radius: ['40%', '70%'], // radius: ['40%', '70%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
label: { label: {
@ -155,7 +155,7 @@ export default {
type: 'scroll', type: 'scroll',
orient: 'vertical', orient: 'vertical',
// right: 10, // right: 10,
left: '59%', left: '80%',
// right:'50%', // right:'50%',
top: 20, top: 20,
bottom: 20, bottom: 20,

View File

@ -63,9 +63,9 @@ export default {
console.log(isAllZero, "isAllZero") console.log(isAllZero, "isAllZero")
let option = null let option = null
if (isAllZero == true) { if (isAllZero == true) {
for (let i = 0; i < this.dataList.length; i++) { // for (let i = 0; i < this.dataList.length; i++) {
this.dataList[i].name = this.dataList[i].name + " 已完成工作项:" + this.dataList[i].value + "项" // this.dataList[i].name = this.dataList[i].name + " " + this.dataList[i].value + ""
} // }
console.log(this.dataList, "this.dataListgroup") console.log(this.dataList, "this.dataListgroup")
option = { option = {
tooltip: { tooltip: {
@ -87,7 +87,7 @@ export default {
{ {
name: '统计', name: '统计',
type: 'pie', type: 'pie',
center: ['35%', '55%'], center: ['45%', '55%'],
// radius: ['40%', '70%'], // radius: ['40%', '70%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
label: { label: {
@ -115,9 +115,9 @@ export default {
] ]
}; };
} else { } else {
for (let i = 0; i < this.dataList.length; i++) { // for (let i = 0; i < this.dataList.length; i++) {
this.dataList[i].name = this.dataList[i].name + " 已完成工作项:" + this.dataList[i].value + "项" // this.dataList[i].name = this.dataList[i].name + " " + this.dataList[i].value + ""
} // }
option = { option = {
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
@ -126,7 +126,7 @@ export default {
{ {
name: '统计', name: '统计',
type: 'pie', type: 'pie',
center: ['35%', '55%'], center: ['45%', '55%'],
// radius: ['40%', '70%'], // radius: ['40%', '70%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
label: { label: {
@ -155,7 +155,7 @@ export default {
type: 'scroll', type: 'scroll',
orient: 'vertical', orient: 'vertical',
// right: 10, // right: 10,
left: '59%', left: '80%',
// right:'50%', // right:'50%',
top: 20, top: 20,
bottom: 20, bottom: 20,