From f124fe7690f42ce40c2e6ee84030bb0b0a213d4f Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Fri, 1 Mar 2024 12:34:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE):=20=E6=A8=AA=E5=90=91?= =?UTF-8?q?=E6=9F=B1=E7=8A=B6=E5=9B=BE=E6=A8=AA=E8=BD=B4=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/bar/bar.ts | 3 ++- .../src/views/chart/components/js/panel/charts/bar/common.ts | 3 +-- .../chart/components/js/panel/charts/bar/horizontal-bar.ts | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts index ead63e3e82..58ec7b7093 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts @@ -26,7 +26,8 @@ export class Bar extends G2PlotChartView { propertyInner = { ...BAR_EDITOR_PROPERTY_INNER, 'label-selector': ['vPosition', 'seriesLabelFormatter'], - 'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter'] + 'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter'], + 'y-axis-selector': [...BAR_EDITOR_PROPERTY_INNER['y-axis-selector'], 'axisLabelFormatter'] } protected baseOptions: ColumnOptions = { xField: 'field', diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/common.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/common.ts index 91e94052f0..8841229d85 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/common.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/common.ts @@ -37,8 +37,7 @@ export const BAR_EDITOR_PROPERTY_INNER: EditorPropertyInner = { 'splitLine', 'axisForm', 'axisLabel', - 'position', - 'axisLabelFormatter' + 'position' ], 'title-selector': [ 'title', diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts index 1ddc990762..f7764d10ee 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts @@ -34,7 +34,8 @@ export class HorizontalBar extends G2PlotChartView { propertyInner = { ...BAR_EDITOR_PROPERTY_INNER, 'label-selector': ['hPosition', 'seriesLabelFormatter'], - 'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter'] + 'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter'], + 'x-axis-selector': [...BAR_EDITOR_PROPERTY_INNER['x-axis-selector'], 'axisLabelFormatter'] } axis: AxisType[] = [...BAR_AXIS_TYPE] protected baseOptions: BarOptions = {