diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-widget.component.ts index aa94ee717c..f33b1f4540 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart-widget.component.ts @@ -121,7 +121,7 @@ export class TimeSeriesChartWidgetComponent implements OnInit, OnDestroy, AfterV } if (this.showLegend) { - this.horizontalLegendPosition = [LegendPosition.left, LegendPosition.right].includes(this.legendConfig.position); + this.horizontalLegendPosition = [LegendPosition.top, LegendPosition.bottom].includes(this.legendConfig.position); this.legendClass = `legend-${this.legendConfig.position}`; this.legendColumnTitleStyle = textStyle(this.settings.legendColumnTitleFont); this.legendColumnTitleStyle.color = this.settings.legendColumnTitleColor;