How to display smaller unit on gauge

I am trying to use the gauge for value display.
But the unit is displaying the same size as the process value.
image

Is there any way to display the unit a bit smaller than the value, better if it can sit below the value, same as the template below.
image

image
you can split it up with a new line

after that its not to hard to target the second element edit it with css

[data-component="ia.chart.simple-gauge"] g > text:nth-child(2) {
    font-size: 10px;
}

adding in text-anchor:middle is also nice, you'll have to adjust the offset a little tho

[data-component="ia.chart.simple-gauge"] g > text{
text-anchor:middle
}

offsetx 20 seems nice for 3 numbers
offsetx 14 for 1 and 2

5 Likes

Just noticed that you have done the round corner of the bar.

Can you advise how you did it?

props.arc.cornerRadius

1 Like

Thank you. it works.