From 62759d2b668501c38e5e85276ab01ec60c96539f Mon Sep 17 00:00:00 2001 From: junjie Date: Mon, 6 Sep 2021 17:27:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E7=BB=84=E5=90=88?= =?UTF-8?q?=E5=9B=BE=E5=8F=8Cy=E8=BD=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/common/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/views/chart/chart/common/common.js b/frontend/src/views/chart/chart/common/common.js index 853ee3cbab..cdf096e85d 100644 --- a/frontend/src/views/chart/chart/common/common.js +++ b/frontend/src/views/chart/chart/common/common.js @@ -1,4 +1,5 @@ import { hexColorToRGBA } from '@/views/chart/chart/util' +import { DEFAULT_YAXIS_EXT_STYLE } from '@/views/chart/chart/chart' export function componentStyle(chart_option, chart) { const padding = '8px' @@ -133,6 +134,7 @@ export function componentStyle(chart_option, chart) { } // axis ext + !customStyle.yAxisExt && (customStyle.yAxisExt = JSON.parse(JSON.stringify(DEFAULT_YAXIS_EXT_STYLE))) chart_option.yAxis[1].show = customStyle.yAxisExt.show chart_option.yAxis[1].position = customStyle.yAxisExt.position chart_option.yAxis[1].name = customStyle.yAxisExt.name