From 3f85ff9067b806df7848ce7b852ff357a7bac7f5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 29 六月 2021 17:25:43 +0800 Subject: [PATCH] 2021-06-29 --- src/tabviews/custom/components/chart/antv-bar-line/index.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 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 2a6777a..b39593c 100644 --- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx +++ b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx @@ -925,7 +925,7 @@ } else { _chart.color(_typefield) } - if (plot.label === 'true') { + if (plot.label !== 'false') { _chart.label(_valfield, (value) => { if (plot.show === 'percent') { value = value + '%' @@ -1160,7 +1160,7 @@ } else { _chart.color('key') } - if (plot.label === 'true') { + if (plot.label !== 'false') { _chart.label('value*key', (value, key) => { if (plot.show === 'percent') { value = value + '%' @@ -1211,7 +1211,7 @@ } else { _chart.color('key') } - if (plot.label === 'true') { + if (plot.label !== 'false') { _chart.label('value*key', (value, key) => { if (plot.show === 'percent') { value = value + '%' @@ -1269,7 +1269,7 @@ if (plot.barSize) { _chart.size(plot.barSize || 35) } - if (item.label === 'true') { + if (item.label !== 'false') { _chart.label(item.name, (value) => { if (plot.show === 'percent') { value = value + '%' @@ -1514,7 +1514,7 @@ } else { _chart.color(_typefield) } - if (plot.label === 'true') { + if (plot.label !== 'false') { _chart.label(`${_valfield}*${_typefield}`, (value, key) => { if (plot.show === 'percent') { value = value + '%' @@ -1572,7 +1572,7 @@ } else { _chart.color(_typefield) } - if (plot.label === 'true') { + if (plot.label !== 'false') { _chart.label(`${_valfield}*${_typefield}`, (value, key) => { if (plot.show === 'percent') { value = value + '%' -- Gitblit v1.8.0