I just pushed an update so you can specify the fractionDigits
as part of the advanced configuration so you don’t have to tweak the code.
{ label: true, min: 0, max: 50, fractionDigits: 1 }
You can update from source to pull in the latest updates.
Nerd Details (tap to expand)
In the original release of the Gauge Tile, I had implemented the
fractionDigits
setting using the native feature of the underlying Gauge.js library that we are using, but there was a bug related to how we are using the library.The Gauge gets created before the settings are available, then we update the settings in the Gauge once they are ready. I didn’t realize that updating the Gauge settings did not update the Label formatter, so I tweaked that with this update.