From d84784d2687974c796ee12e71fb3b8a6a90ee410 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 16 Apr 2025 15:14:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A0=86=E5=8F=A0=E6=9F=B1=E7=8A=B6=E5=9B=BE=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E7=99=BE=E5=88=86=E6=AF=94=E6=9F=B1=E7=8A=B6=E5=9B=BE=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=8F=90=E7=A4=BA=E8=BD=AE=E6=92=AD=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/g2plot_tooltip_carousel.ts | 2 +- .../views/chart/components/js/panel/charts/bar/bar.ts | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts b/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts index def2cd3d67..11f6ab802b 100644 --- a/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts +++ b/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts @@ -8,7 +8,7 @@ export const CAROUSEL_MANAGER_INSTANCES = new Map( * 支持的图表类型 */ const CHART_CATEGORY = { - COLUMN: ['bar', 'bar-stack', 'bar-group', 'bar-group-stack'], + COLUMN: ['bar', 'bar-stack', 'bar-group', 'bar-group-stack', 'percentage-bar-stack'], LINE: ['line', 'area', 'area-stack'], MIX: ['chart-mix', 'chart-mix-group', 'chart-mix-stack', 'chart-mix-dual-line'], PIE: ['pie', 'pie-donut'] 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 6aa4d16b49..248d502e29 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 @@ -280,7 +280,14 @@ export class StackBar extends Bar { 'totalFormatter', 'showStackQuota' ], - 'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'tooltipFormatter', 'show'] + 'tooltip-selector': [ + 'fontSize', + 'color', + 'backgroundColor', + 'tooltipFormatter', + 'show', + 'carousel' + ] } protected configLabel(chart: Chart, options: ColumnOptions): ColumnOptions { let label = getLabel(chart) @@ -679,7 +686,7 @@ export class PercentageStackBar extends GroupStackBar { propertyInner = { ...this['propertyInner'], 'label-selector': ['color', 'fontSize', 'vPosition', 'reserveDecimalCount'], - 'tooltip-selector': ['color', 'fontSize', 'backgroundColor', 'show'] + 'tooltip-selector': ['color', 'fontSize', 'backgroundColor', 'show', 'carousel'] } protected configLabel(chart: Chart, options: ColumnOptions): ColumnOptions { const baseOptions = super.configLabel(chart, options)