Now next i would like to make a dicimal number, and i see it is covered in another post with the code: function formatNumber(number, digits=1) { but i have a hard time to understand where to put in my code ther is as followed :
I do not see it on line 194 but on line 205 and when i change the digits from 0 to 1 and update it is the same. I know i do somthing wrong but i dont know what.
The Custom Tiles listed at the top of this thread support customizations of the thickness of the arc. IIRC, the font size in the Gauge.js variant is set in the CSS of the Custom Tile but could in theory be customized… and the Apex Charts version can be customized with their JSON specification.
The native Super Tile Gauge does not support customization of the arc. The width changes automatically based on if you pick Arc, Circle, or Radial as the gauge style. And the font dynamically scales based on the number of characters to fit in the space (and thus can’t be overridden).
On the Gauge.js version? In reading the Gauge.js documentation looks like they have a setting for adjusting the point length but it always seems to start at the center of the gauge with no offset.
So you could adjust the length from the default of 0.74 to 0.3 for example to shorten it, but I don’t see an option to offset the starting position from the center.
There’s also a ‘Circle’ gauge type with the Super Tile and with all of the gauges you have the option to NOT display a pointer and to make the gauges interactive/controllable or not.
Sorry, I’m maybe a little bad in explaining, but when i set the label of a arc on MAX 100 and when the value become more than 100 (let’s say 150) the needle is not going back to the half when it get’s a new value of 50, but to 1/3 (1/3 of 150). It is like it got a new max value of 150.
Can i fix the max value to 100 even when the value goes over this?
Maybe picture will explain it a little more. I found out to limit max the gauge, but it will also fix the value to a maximum. I calculate the energy cost on a montlhy base. I want to be lower than a fixed cost. But in the winter i will go over. So that is the moment i don’t want a fixed maximum value.
This is what i see. Hopefully you see what i’m seeing.