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']