From 772308eba58d2209e7cc108dc5567ef4ca7ee3b2 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 15 四月 2021 16:17:20 +0800 Subject: [PATCH] 2021-04-15 --- src/tabviews/custom/components/chart/antv-bar-line/index.jsx | 11 ++++------- 1 files changed, 4 insertions(+), 7 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 01878f0..73dc126 100644 --- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx +++ b/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) -- Gitblit v1.8.0