ashish-chopra / angular-gauge

A reusable gauge directive for Angular 1.x apps and dashboards
https://ashish-chopra.github.io/angular-gauge/
MIT License
95 stars 36 forks source link

Add label only mode #45

Closed anunesse closed 6 years ago

anunesse commented 6 years ago

The label only mode allow the gauge to be configured so that only the label is displayed.

By default labelOnly has no effects on the directive.

If labelOnly mode is set to true then the value is hidden and the label is drawn as the value in the canvas.

I added a test and I just need to add this option to the documentation.

martinschuberts commented 6 years ago

It's a very useful option if you want to show e.g. "5,5 MW" but your value is 5500, or for a time showing 5min and your real value was in milliseconds.

ashish-chopra commented 6 years ago

Thanks @anunesse ,

This is amazing. And you handled the font very well.

Thanks man!

Cheers Ashish