When you have negative values, the singlestat gauge does not render the progress bar correctly.
My use case is RSSI (receive signal strength indicator). This is typically expressed in logrithmic dB units and the values are typically negative. A typical range would be 0 to -160dB.
I’ve attached a screen shot showing the problem. I searched the GitHub issues and found a closed issue #3248 going back to 2015 regarding this problem. It was apparently addressed in 3.0.0 the issue was closed.
There is an open issue #5234 that offers a work around where you manually force the number of decimals. Someone appears to have identified the offending line of code that causes the auto determination of decimal places to fail. Simple fix … hope this gets updated soon.