pastille
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i pastille

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

45.1 kB

Total Files

27

Last publish

Collaborators

  • jmsv