king
2022-05-18 0011ec870d3d1fe9d77a4941358c84acf8632e5e
src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -1018,6 +1018,9 @@
    }
    if (plot.label !== 'false') {
      _chart.label(_valfield, (value) => {
        if (plot.labelValue === 'zero' && value === 0) {
          return null
        }
        if (plot.show === 'percent') {
          value = value + '%'
        }
@@ -1253,6 +1256,10 @@
        }
        if (plot.label !== 'false') {
          _chart.label('value*key', (value, key) => {
            if (plot.labelValue === 'zero' && value === 0) {
              return null
            }
            if (plot.show === 'percent') {
              value = value + '%'
            }
@@ -1304,6 +1311,10 @@
        }
        if (plot.label !== 'false') {
          _chart.label('value*key', (value, key) => {
            if (plot.labelValue === 'zero' && value === 0) {
              return null
            }
            if (plot.show === 'percent') {
              value = value + '%'
            }
@@ -1371,6 +1382,10 @@
        }
        if (item.label !== 'false') {
          _chart.label(item.name, (value) => {
            if (plot.labelValue === 'zero' && value === 0) {
              return null
            }
            if (item.show === 'percent') {
              value = value + '%'
            }
@@ -1419,6 +1434,10 @@
        if (item.label === 'true') {
          _chart.label(item.name, (value) => {
            if (plot.labelValue === 'zero' && value === 0) {
              return null
            }
            if (item.show === 'percent') {
              value = value + '%'
            }
@@ -1624,6 +1643,10 @@
      }
      if (plot.label !== 'false') {
        _chart.label(`${_valfield}*${_typefield}`, (value, key) => {
          if (plot.labelValue === 'zero' && value === 0) {
            return null
          }
          if (plot.show === 'percent') {
            value = value + '%'
          }
@@ -1682,6 +1705,10 @@
      }
      if (plot.label !== 'false') {
        _chart.label(`${_valfield}*${_typefield}`, (value, key) => {
          if (plot.labelValue === 'zero' && value === 0) {
            return null
          }
          if (plot.show === 'percent') {
            value = value + '%'
          }