Truncate gauge label text to 2 decimal points
parent
2d068237b8
commit
2fa7eb8c37
|
@ -245,7 +245,8 @@ class Gauge extends Component {
|
|||
|
||||
const gaugeValues = []
|
||||
for (let g = minValue; g <= maxValue; g += incrementValue) {
|
||||
gaugeValues.push(g.toString())
|
||||
const roundedValue = Math.round(g * 100) / 100
|
||||
gaugeValues.push(roundedValue.toString())
|
||||
}
|
||||
|
||||
const startDegree = degree * 135
|
||||
|
|
Loading…
Reference in New Issue