From 11d2d628ad2c562d6c6dea2bda137b0ab52528cf Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 5 May 2026 11:05:25 +1000 Subject: [PATCH] fix(tb-node/charts): corrected timeseries legend orientation Fixes an issue in timeseries charts where legend layout direction was inverted: - top/bottom legends were rendered vertically instead of horizontally - left/right legends were rendered horizontally instead of vertically Updates legend orientation logic to align with expected timeseries chart behavior. Fixes: #11959, #14269 Partial Resolution: #15543 --- .../widget/lib/chart/time-series-chart-widget.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;