subarroca / ng-gauge

Gauge generic component made with angular2 and SVG
https://subarroca.github.io/ng-gauge/
13 stars 6 forks source link

ng-gauge

Flexible gauge graph made with SVG ang Angular2 that can be used as pie chart too.

As seen on Angularbeers http://www.meetup.com/AngularJS-Beers/events/234753624/

Installing

ng-gauge is available via npm

npm install ng-gauge -S

Import GaugeModule in your module

import { GaugeModule } from 'ng-gauge';

And the models where you need them

import { GaugeSegment, GaugeLabel } from 'ng-gauge';

## Usage:
```html
<ng-gauge></ng-gauge>

Set a width and height for the gauge and it will scale accordingly.

Example code can be checked in src/app/app.html

Options:

GaugeSegment is a class you MUST use and it has the following properties:

GaugeLabel is a class you CAN use and it has the following properties:

Known issues: