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

Gauge type of 'stripe' is not supported currently #7

Open
ashish-chopra opened this issue Sep 29, 2016 · 1 comment
Open

Gauge type of 'stripe' is not supported currently #7

ashish-chopra opened this issue Sep 29, 2016 · 1 comment

Comments

@ashish-chopra
Copy link
Owner

stripe property is not supported currently, due to coding challenges in animation part. Its support is needed for future release.

@ashish-chopra
Copy link
Owner Author

gauge type of stripe will be supported by adding "stripe" attribute to the gauge which can take any positive integer. The value of stripe is the width and space between the stripes. It may look like this:

stripe-gauge

and, it can be added using following global setting to the canvas before starting any drawing:

this.context.setLineDash([stripe]);
Checkout canvas API in MDN to know more about linedash API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant