From aa53227bc006816a30258c6390084aa74defb4d1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 27 十一月 2023 18:05:55 +0800 Subject: [PATCH] 2023-11-27 --- src/tabviews/custom/components/chart/antv-bar-line/index.jsx | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx index bb1006e..1814eb8 100644 --- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx +++ b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx @@ -1124,9 +1124,6 @@ } if (plot.label !== 'false') { _chart.label(_valfield, (value) => { - if (plot.labelValue === 'zero' && value === 0) { - return null - } let val = value if (plot.show === 'percent') { val = value + '%' @@ -1415,7 +1412,7 @@ } if (plot.$label !== 'false') { _chart.label('value*key', (value, key) => { - if (plot.labelValue === 'zero' && value === 0) { + if (plot.$label !== 'true' && value === 0) { return null } @@ -1478,7 +1475,7 @@ } if (plot.$label !== 'false') { _chart.label('value*key', (value, key) => { - if (plot.labelValue === 'zero' && value === 0) { + if (plot.$label !== 'true' && value === 0) { return null } @@ -1574,7 +1571,7 @@ } if (item.label !== 'false') { _chart.label(item.name, (value) => { - if (plot.labelValue === 'zero' && value === 0) { + if (plot.label !== 'true' && value === 0) { return null } @@ -1645,10 +1642,6 @@ if (item.label === 'true') { _chart.label(item.name, (value) => { - if (plot.labelValue === 'zero' && value === 0) { - return null - } - let val = value if (item.show === 'percent') { val = value + '%' @@ -1892,7 +1885,7 @@ } if (plot.label !== 'false') { _chart.label(`${_valfield}*${_typefield}`, (value, key) => { - if (plot.labelValue === 'zero' && value === 0) { + if (plot.label !== 'true' && value === 0) { return null } @@ -1978,7 +1971,7 @@ } if (plot.label !== 'false') { _chart.label(`${_valfield}*${_typefield}`, (value, key) => { - if (plot.labelValue === 'zero' && value === 0) { + if (plot.label !== 'true' && value === 0) { return null } -- Gitblit v1.8.0