greetclock / angular-gauge-chart

Angular Gauge Chart
https://recogizer.github.io/gauge-chart/examples/samples/
MIT License
60 stars 42 forks source link

Chart not working with Decimal/Float value #72

Open shabbirdhangot opened 2 years ago

shabbirdhangot commented 2 years ago

It not work with float value

optionsChart4 = {
    hasNeedle: true,
    needleColor: 'gray',
    needleUpdateSpeed: 2000,
    arcColors: ['rgb(255,84,84)', 'rgb(239,214,19)', 'rgb(61,204,91)'],
    arcDelimiters: [0.9, 0.95],
    rangeLabel: ['0', '1'],
    needleStartValue: 0,
    bottomLabel: '0.93',
    name: 'Power Factor',
    needleValue: 0.93
}