diff --git a/projects/charts-ng/common/si-chart-base.component.ts b/projects/charts-ng/common/si-chart-base.component.ts index d60257cd8..46c7d5da2 100644 --- a/projects/charts-ng/common/si-chart-base.component.ts +++ b/projects/charts-ng/common/si-chart-base.component.ts @@ -518,6 +518,7 @@ export class SiChartBaseComponent implements AfterViewInit, OnChanges, OnInit, O }); } this.applyOptions(); + this.ensureAriaConfiguration(); this.applyAdditionalOptions(); this.applyDataZoom(); this.applyStyles(); @@ -726,6 +727,17 @@ export class SiChartBaseComponent implements AfterViewInit, OnChanges, OnInit, O protected applyOptions(): void {} + private ensureAriaConfiguration(): void { + if (!this.actualOptions.aria) { + this.actualOptions.aria = { + enabled: true, + label: { + enabled: true + } + }; + } + } + protected applyCustomLegendPosition(): void { if (this.showLegend() && this.showCustomLegend()) { this.customLegend.forEach(cl => {