0.1.1 • Published 5 years ago

pastille v0.1.1

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

Pastille

A percentage indicator chart thing for Angular

pastille

Usage

In your module:

import { PastilleModule } from 'pastille';

@NgModule({
  ...
  imports: [
    ...
    PastilleModule
    ...
  ],
  ...  
})

In your template:

<lib-pastille [data]="data"></lib-pastille>

Where data is in the following format:

data = [{
  name: 'Downloaded',
  value: 50,
  color: '#8bc34a'
}, {
  name: 'Failed',
  value: 30,
  color: '#f44336'
}, {
  name: 'Not downloaded',
  value: 20,
  color: '#cfd8dc'
}]

Development

npm start runs the example app on localhost:1337

0.1.1

5 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago