Browse Source

UI: fixed chart card value color differs from other widgets with same values and range colors configs

pull/10108/head
rusikv 3 years ago
parent
commit
61ce68854d
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/cards/aggregated-value-card-widget.component.ts

2
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;

Loading…
Cancel
Save