From 638b8d195a4174cb705e2ff7440bbe61d074884b Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 26 Nov 2024 19:52:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E6=9D=A1=E5=BD=A2=E5=9B=BE=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=EF=BC=8C=E5=9C=A8=E7=BA=B5=E8=BD=B4=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E4=B8=AD=E5=87=BA=E7=8E=B0=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B6?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/YAxisSelector.vue | 1 + .../components/js/panel/charts/bar/horizontal-bar.ts | 3 ++- .../components/js/panel/charts/bar/progress-bar.ts | 10 +++++++++- .../chart/components/js/panel/charts/bar/range-bar.ts | 3 ++- .../chart/components/js/panel/charts/bar/waterfall.ts | 3 ++- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue index 07355e710a..4c74396b98 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue @@ -414,6 +414,7 @@ onMounted(() => { class="form-item" :class="'form-item-' + themes" :label="t('chart.length_limit')" + v-if="showProperty('showLengthLimit')" > { 'splitLine', 'axisForm', 'axisLabel', - 'position' + 'position', + 'showLengthLimit' ] } axis: AxisType[] = [...BAR_AXIS_TYPE] diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/progress-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/progress-bar.ts index 0e5db854b1..651cb62b91 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/progress-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/progress-bar.ts @@ -57,7 +57,15 @@ export class ProgressBar extends G2PlotChartView { 'basic-style-selector': ['colors', 'alpha', 'gradient', 'radiusColumnBar'], 'label-selector': ['hPosition', 'color', 'fontSize'], 'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'tooltipFormatter', 'show'], - 'y-axis-selector': ['name', 'color', 'fontSize', 'axisForm', 'axisLabel', 'position'], + 'y-axis-selector': [ + 'name', + 'color', + 'fontSize', + 'axisForm', + 'axisLabel', + 'position', + 'showLengthLimit' + ], 'function-cfg': ['emptyDataStrategy'] } axis: AxisType[] = [...BAR_AXIS_TYPE, 'yAxisExt'] diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts index d3a8b9818d..709525c156 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/range-bar.ts @@ -66,7 +66,8 @@ export class RangeBar extends G2PlotChartView { 'splitLine', 'axisForm', 'axisLabel', - 'position' + 'position', + 'showLengthLimit' ] } axis: AxisType[] = [...BAR_AXIS_TYPE, 'yAxisExt'] diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/waterfall.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/waterfall.ts index dedf3d2008..ce24af4f0f 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/waterfall.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/waterfall.ts @@ -68,7 +68,8 @@ export class Waterfall extends G2PlotChartView { 'splitLine', 'axisForm', 'axisLabel', - 'axisLabelFormatter' + 'axisLabelFormatter', + 'showLengthLimit' ] } axis: AxisType[] = ['xAxis', 'yAxis', 'filter', 'drill', 'extLabel', 'extTooltip']