Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label only mode #45

Merged
merged 2 commits into from
Nov 16, 2017

Conversation

anunesse
Copy link

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
Copy link

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
Copy link
Owner

Thanks @anunesse ,

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

  • This will give options to other to manipulate/convert the value outside the gauge and pump into it through label.

Thanks man!

Cheers
Ashish

@ashish-chopra ashish-chopra merged commit d529b1e into ashish-chopra:master Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants