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

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

Open ashish-chopra opened 8 years ago

ashish-chopra commented 8 years ago

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

ashish-chopra commented 8 years ago

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.