Widget Horizontal Bar: add parseFloat of value in update()

This commit is contained in:
Artem Babak 2023-02-23 11:22:46 +02:00
parent 42ade3ee3a
commit bc1d9011c6

View File

@ -405,8 +405,8 @@ export class TbCanvasDigitalGauge {
(this.gauge.options as CanvasDigitalGaugeOptions).labelTimestamp =
filter.transform(timestamp, this.localSettings.timestampFormat);
}
const value = tvPair[1];
if (value != this.gauge.value) {
const value = parseFloat(tvPair[1]);
if (value !== this.gauge.value) {
if (!this.gauge.options.animation) {
this.gauge._value = value;
}