删掉图例具体内容

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

View File

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