diff --git a/projects/charts-ng/common/si-chart-base.component.ts b/projects/charts-ng/common/si-chart-base.component.ts index ba4168765f..9a31066d3f 100644 --- a/projects/charts-ng/common/si-chart-base.component.ts +++ b/projects/charts-ng/common/si-chart-base.component.ts @@ -767,9 +767,9 @@ export class SiChartBaseComponent implements AfterViewInit, OnChanges, OnInit, O if (paletteValue) { const palette = this.getThemeCustomValue(['colorPalettes', paletteValue], null); if (palette) { - this.actualOptions.color = palette; + this.actualOptions.color = Array.isArray(palette) ? palette.filter(Boolean) : palette; if (this.customLegendAction()) { - this.fetchSeriesColors(palette); + this.fetchSeriesColors(this.actualOptions.color); } } }