Widget Horizontal Bar: add parseFloat of value in update()
This commit is contained in:
parent
42ade3ee3a
commit
bc1d9011c6
@ -405,8 +405,8 @@ 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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user