king
2021-04-15 772308eba58d2209e7cc108dc5567ef4ca7ee3b2
src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -117,7 +117,7 @@
      }
    })
    _config.plot.color = _config.plot.color || 'rgba(0, 0, 0, 0.85)'
    _config.plot.color = _config.plot.color || 'rgba(0, 0, 0, 0.65)'
    if (_config.plot.enabled === 'true' && _config.plot.customs && _config.plot.customs.length > 0) {
      let colors = new Map()
@@ -158,7 +158,7 @@
  
        if (item.axis === 'true' && axisIndex < 2) {
          if (axisIndex === 0) {
            item.axis = { grid: {style: { fill: _config.plot.color }}, title: { style: { fill: _config.plot.color } }, label: {style: { fill: _config.plot.color }} }
            item.axis = { title: { style: { fill: _config.plot.color } }, label: {style: { fill: _config.plot.color }} }
            fields.unshift(item)
          } else {
            item.axis = { grid: null, title: {style: { fill: _config.plot.color }}, label: {style: { fill: _config.plot.color }} }
@@ -846,9 +846,8 @@
        },
        style: { fill: plot.color }
      },
      line: { style: { fill: plot.color } }
    })
    chart.axis(_valfield, { grid: { style: { fill: plot.color } }, label: { style: { fill: plot.color } } })
    chart.axis(_valfield, { label: { style: { fill: plot.color } } })
    if (!plot.legend || plot.legend === 'hidden') {
      chart.legend(false)
@@ -998,7 +997,6 @@
        },
        style: { fill: plot.color }
      },
      line: { style: { fill: plot.color } }
    })
    if (!plot.legend || plot.legend === 'hidden') {
@@ -1199,9 +1197,8 @@
        },
        style: { fill: plot.color }
      },
      line: { style: { fill: plot.color } }
    })
    chart.axis(_valfield, { grid: { style: { fill: plot.color } }, label: { style: { fill: plot.color } } })
    chart.axis(_valfield, { label: { style: { fill: plot.color } } })
    if (!plot.legend || plot.legend === 'hidden') {
      chart.legend(false)