# ngx-skill-bar

> A clean way to show skill and progress bars for angular 6.

Latest version **1.0.3** (published 2018-07-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install ngx-skill-bar
pnpm add ngx-skill-bar
yarn add ngx-skill-bar
bun add ngx-skill-bar
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-07-14 |
| First published | 2018-07-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 169.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Mauricio Joost Wolff |
| Maintainers | mauriciojoostwolff |
| Keywords | angular 6, bar, progress bar, skill bar, progress, progress |

## Links

- npm: https://www.npmjs.com/package/ngx-skill-bar
- Repository: https://github.com/thiswallz/ngx-skill-bar
- Homepage: https://github.com/thiswallz/ngx-skill-bar#readme
- Issues: https://github.com/thiswallz/ngx-skill-bar/issues
- npm.io page: https://npm.io/package/ngx-skill-bar

## Dependencies (1)

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

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-07-14
- 1.0.2 — 2018-07-14
- 1.0.1 — 2018-07-14

## README

# NGX-SKILL-BAR

[![npm version](https://img.shields.io/npm/v/ngx-skill-bar.svg?style=flat-square)](https://www.npmjs.com/package/ngx-skill-bar)
[![npm downloads](https://img.shields.io/npm/dm/ngx-skill-bar.svg?style=flat)](https://www.npmjs.com/package/ngx-skill-bar)
[![dependency status](https://david-dm.org/thiswallz/ngx-skill-bar.svg)](https://david-dm.org/thiswallz/ngx-skill-bar)

Beautiful and simple skill/progress bars.


You do not need any dependencies. It works with Angular x. (Was created using Angular 6)

#### Examples

![Alt text](https://raw.githubusercontent.com/thiswallz/ngx-skill-bar/master/bars.png?raw=true 'Example 1')


## Quick Start

### Install

```bash
npm i --save ngx-skill-bar
```


### Import the module

```ts
// app.module.ts...
import { NgxSkillBarModule } from "ngx-skill-bar";
// ...
@NgModule({
  imports: [
    //...
    NgxSkillBarModule
  ],
})
export class AppModule {}
```

### Use it!

![Alt text](https://raw.githubusercontent.com/thiswallz/ngx-skill-bar/master/example1.png?raw=true 'Example 1')

```html
  <input [(ngModel)]="myNumber"  type="number" />
  <div>My ngx-skill-bar</div>
  <ngx-skill-bar 
  [percentage]="myNumber" 
  bgColor="#cccccc" 
  color="#666666"
  showFigures="true">
```

More examples :

```html
    <div>Basic usage, different percentages</div>
    <ngx-skill-bar percentage="50"></ngx-skill-bar>
    <ngx-skill-bar percentage="75"></ngx-skill-bar>
    <ngx-skill-bar percentage="80"></ngx-skill-bar>
    <ngx-skill-bar percentage="60"></ngx-skill-bar>
    <ngx-skill-bar percentage="30"></ngx-skill-bar>

    <div>Different number of bars (percentage 50%)</div>
    <ngx-skill-bar percentage="50" numberOfBars="9"></ngx-skill-bar>
    <ngx-skill-bar percentage="50" numberOfBars="7"></ngx-skill-bar>
    <ngx-skill-bar percentage="50" numberOfBars="5"></ngx-skill-bar>
    <ngx-skill-bar percentage="50" numberOfBars="2"></ngx-skill-bar>
    <ngx-skill-bar percentage="50" numberOfBars="1"></ngx-skill-bar>

    <div>Showing percentage (7 bars)</div>
    <ngx-skill-bar percentage="100" numberOfBars="7" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar percentage="80.5" numberOfBars="7" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar percentage="60" numberOfBars="7" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar percentage="40.54" numberOfBars="7" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar percentage="9.98" numberOfBars="7" showFigures="true"></ngx-skill-bar>

    <div>Different bar and background colors (8 bars)</div>
    <ngx-skill-bar showFigures="true" percentage="50" numberOfBars="8" bgColor="rgba(255, 255, 255, .5)" color="#FBC02D"></ngx-skill-bar>
    <ngx-skill-bar showFigures="true" percentage="75" numberOfBars="8" bgColor="rgba(255, 255, 255, .5)" color="#D500F9"></ngx-skill-bar>
    <ngx-skill-bar showFigures="true" percentage="80" numberOfBars="8" bgColor="#33691E" color="#FF5722"></ngx-skill-bar>
    <ngx-skill-bar showFigures="true" percentage="60" numberOfBars="8" bgColor="#263238" color="#E91E63"></ngx-skill-bar>
    <ngx-skill-bar showFigures="true" percentage="30" numberOfBars="8" bgColor="#263238" color="#90A4AE"></ngx-skill-bar>

    <div>Different bar-width  (5 bars)</div>
    <ngx-skill-bar barWidth="70" percentage="50" numberOfBars="5" showFigures="true" ></ngx-skill-bar>
    <ngx-skill-bar barWidth="60" percentage="50" numberOfBars="5" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar barWidth="50" percentage="50" numberOfBars="5" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar barWidth="30" percentage="50" numberOfBars="5" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar barWidth="20" percentage="50" numberOfBars="5" showFigures="true"></ngx-skill-bar>

    <div>Full bar (8 bars)</div>
    <ngx-skill-bar full="true" percentage="100" numberOfBars="8" showFigures="true"></ngx-skill-bar>
    <ngx-skill-bar full="true" percentage="80.5" numberOfBars="8" showFigures="true" bgColor="#33691E" color="#FF5722"></ngx-skill-bar>
    <ngx-skill-bar full="true" percentage="60" numberOfBars="8" showFigures="true" bgColor="#263238" color="#E91E63"></ngx-skill-bar>
    <ngx-skill-bar full="true" percentage="40.54" numberOfBars="8" showFigures="true" bgColor="#263238" color="#90A4AE"></ngx-skill-bar>
    <ngx-skill-bar full="true" percentage="9.98" numberOfBars="8" showFigures="true"></ngx-skill-bar>
```

## Authors

- **Mauricio Joost Wolff** - _Initial work_ - [GitHub](https://github.com/thiswallz)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

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