king
2022-05-27 cc1d7095ec6df622efbdaaabe3dec78ca3599d90
src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -198,12 +198,14 @@
      _config.plot.$colors = colors
    }
    let limit = _config.plot.XLimit || 11
    let xc = {label: {
      formatter: (val) => {
        if (!val || /^\s*$/.test(val)) return val
        let _val = `${val}`
        if (_val.length <= 11) return val
        return _val.substring(0, 8) + '...'
        if (_val.length <= limit) return val
        return _val.substring(0, limit) + '...'
      },
      style: { fill: _config.plot.color }
    }}