jmsv / pastille

A percentage indicator chart thing for Angular

Home Page:https://www.npmjs.com/package/pastille

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pastille

Pastille build CI status

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

About

A percentage indicator chart thing for Angular

https://www.npmjs.com/package/pastille

License:MIT License


Languages

Language:TypeScript 71.4%Language:JavaScript 15.4%Language:CSS 6.8%Language:HTML 6.3%