# pastille

> A percentage indicator chart thing for Angular

Latest version **0.1.1** (published 2019-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install pastille
pnpm add pastille
yarn add pastille
bun add pastille
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-08-14 |
| First published | 2019-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 44 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | James Vickery |
| Maintainers | jmsv |
| Keywords | angular, ng, chart, percentage |

## Links

- npm: https://www.npmjs.com/package/pastille
- Repository: https://github.com/jmsv/pastille
- Homepage: https://github.com/jmsv/pastille#readme
- Issues: https://github.com/jmsv/pastille/issues
- npm.io page: https://npm.io/package/pastille

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2019-08-14
- 0.1.0 — 2019-08-14
- 0.0.4 — 2019-08-14
- 0.0.3 — 2019-08-14
- 0.0.2 — 2019-08-14
- 0.0.1 — 2019-08-14

## README

# Pastille

A percentage indicator chart thing for Angular

![pastille](https://user-images.githubusercontent.com/14852491/63027254-86621680-bea4-11e9-880e-518b5fb32f81.gif)

## Usage

In your module:

```js
import { PastilleModule } from 'pastille';

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

In your template:

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

Where `data` is in the following format:

```js
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`

---
_Source: https://npm.io/package/pastille · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
