bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Add formatted value label to gauge via new value options. #196

Open dhunt84971 opened 5 years ago

dhunt84971 commented 5 years ago

Options includes value with properties for displaying the value in the gauge using options specified including font, right, down, decimals, color and units.

This was added because using absolute position does not work well for placing text over the gauge.

Note: gauge.min.js has not been modified.

dhunt84971 commented 5 years ago

I just realized the this.ctx.globalCompositeOperation='destination-over'; that was added causes other issues. This needs to be removed.