fix(图表): 修复堆叠柱状图以及百分比柱状图没有提示轮播配置项的问题

This commit is contained in:
jianneng-fit2cloud
2025-04-16 15:14:30 +08:00
committed by jianneng-fit2cloud
parent 2e6b532235
commit d84784d268
2 changed files with 10 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ export const CAROUSEL_MANAGER_INSTANCES = new Map<string, ChartCarouselTooltip>(
* 支持的图表类型
*/
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']

View File

@@ -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)