bernii/gauge.js

The label does not support decimal place. I can only set integers.

Dawit-DNA opened this issue · 2 comments

The label does not support decimal place. I can only set integers.

Set the staticLabels.fractionDigits

this.ctx.fillText(formatNumber(value.label, staticLabels.fractionDigits), 0, -radius - this.lineWidth / 2);

This function formatNumber will round if you don't provide a value.

formatNumber = function() {

image

I´m sorry!
I need decimal points on pointer.