Browse Source
Merge pull request #8118 from deaflynx/fix/widget/dg-hotizontal-bar/incorrect-display-decimal-numbers
'Horizontal bar' widget displays incorrectly decimal values that ends with zeros
pull/8278/head
Igor Kulikov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/digital-gauge.ts
|
|
@ -405,7 +405,7 @@ export class TbCanvasDigitalGauge { |
|
|
(this.gauge.options as CanvasDigitalGaugeOptions).labelTimestamp = |
|
|
(this.gauge.options as CanvasDigitalGaugeOptions).labelTimestamp = |
|
|
filter.transform(timestamp, this.localSettings.timestampFormat); |
|
|
filter.transform(timestamp, this.localSettings.timestampFormat); |
|
|
} |
|
|
} |
|
|
const value = tvPair[1]; |
|
|
const value = parseFloat(tvPair[1]); |
|
|
if (value !== this.gauge.value) { |
|
|
if (value !== this.gauge.value) { |
|
|
if (!this.gauge.options.animation) { |
|
|
if (!this.gauge.options.animation) { |
|
|
this.gauge._value = value; |
|
|
this.gauge._value = value; |
|
|
|