From 61ce68854deacbf71e6aaff1a33dcb84471e8c85 Mon Sep 17 00:00:00 2001 From: rusikv Date: Thu, 1 Feb 2024 13:59:08 +0200 Subject: [PATCH 1/2] UI: fixed chart card value color differs from other widgets with same values and range colors configs --- .../widget/lib/cards/aggregated-value-card-widget.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts index af3bd41caa..dc3b095552 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts @@ -242,7 +242,7 @@ export class AggregatedValueCardWidgetComponent implements OnInit, AfterViewInit aggValue.value = 'N/A'; } const numeric = formatNumberValue(value, (aggValue.key.decimals || this.ctx.decimals)); - aggValue.color.update(numeric); + aggValue.color.update(value); if (aggValue.showArrow && isDefined(numeric)) { aggValue.upArrow = numeric > 0; aggValue.downArrow = numeric < 0; From c506d258890fcc170f7c00e6ff4576a52a6b529e Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Mon, 12 Feb 2024 13:50:04 +0200 Subject: [PATCH 2/2] Update aggregated-value-card-widget.component.ts --- .../widget/lib/cards/aggregated-value-card-widget.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts index dc3b095552..25be87451e 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts @@ -241,8 +241,8 @@ export class AggregatedValueCardWidgetComponent implements OnInit, AfterViewInit } else { aggValue.value = 'N/A'; } - const numeric = formatNumberValue(value, (aggValue.key.decimals || this.ctx.decimals)); aggValue.color.update(value); + const numeric = formatNumberValue(value, (aggValue.key.decimals || this.ctx.decimals)); if (aggValue.showArrow && isDefined(numeric)) { aggValue.upArrow = numeric > 0; aggValue.downArrow = numeric < 0;