From 9def83bfed3a718ec2110493c6b7e47560daa74b Mon Sep 17 00:00:00 2001 From: junjie Date: Fri, 14 May 2021 18:30:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):line=20=E9=9D=A2?= =?UTF-8?q?=E7=A7=AFbug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/line/line.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chart/chart/line/line.js b/frontend/src/views/chart/chart/line/line.js index ff1bce7272..ec7d326199 100644 --- a/frontend/src/views/chart/chart/line/line.js +++ b/frontend/src/views/chart/chart/line/line.js @@ -36,7 +36,9 @@ export function baseLineOption(chart_option, chart) { type: customAttr.size.lineType } y.smooth = customAttr.size.lineSmooth - customAttr.size.lineArea ? y.areaStyle = { opacity: 0.6 } : { opacity: 0 } + y.areaStyle = { + opacity: customAttr.size.lineArea ? 0.6 : 0 + } } // label if (customAttr.label) {