# ngx-stacked-progressbar

> [![npm version](https://img.shields.io/npm/v/ngx-stacked-progressbar.svg?style=flat-square)](https://www.npmjs.com/package/ngx-stacked-progressbar)

Latest version **0.0.11** (published 2023-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-stacked-progressbar
pnpm add ngx-stacked-progressbar
yarn add ngx-stacked-progressbar
bun add ngx-stacked-progressbar
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2023-06-16 |
| First published | 2020-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | dailam103 |
| Keywords | 100% stacked progessbar, progressbar, stacked |

## Links

- npm: https://www.npmjs.com/package/ngx-stacked-progressbar
- Repository: https://github.com/dailam103/ngx-stacked-progressbar
- Homepage: https://github.com/dailam103/ngx-stacked-progressbar#readme
- Issues: https://github.com/dailam103/ngx-stacked-progressbar/issues
- npm.io page: https://npm.io/package/ngx-stacked-progressbar

## Dependencies (1)

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

## Recent versions

- 0.0.11 (latest) — 2023-06-16
- 0.0.10 — 2020-08-17
- 0.0.8 — 2020-08-16

## README

# Ngx Stacked Progressbar

[![npm version](https://img.shields.io/npm/v/ngx-stacked-progressbar.svg?style=flat-square)](https://www.npmjs.com/package/ngx-stacked-progressbar)

Simple 100% stacked progressbar

<img src="https://raw.githubusercontent.com/dailam103/ngx-stacked-progressbar/HEAD/assets/demo.png" alt="Example" width="700"/>

## How to use it?
Install `ngx-stacked-progressbar` in your project:
```
npm install ngx-stacked-progressbar
```

Import the `NgxStackedProgressbarModule` in your `app.module.ts`:
```typescript
import { MatFormFieldModule, MatSelectModule } from '@angular/material';
import { NgxMatSelectSearchModule } from 'ngx-stacked-progressbar';

@NgModule({
  imports: [
    NgxStackedProgressbarModule,
  ],
})
export class AppModule {}
```

Define data in your app.component.ts:
```typescript
import { StackedProgressbarBlock } from 'ngx-stacked-progressbar/lib/ngx-stacked-progressbar.type';

...

export class AppComponent {
  public data: StackedProgressbarBlock[] = [
    {
      displayValue: 'Free Space',
      value: 40,
      tooltip: 'Free Space',
      bgColor:'#5cb85c'
    },
    {
      displayValue: 'Warning',
      value: 20,
      tooltip: 'Warning',
      bgColor: '#f0ad4e'
    },
    {
      displayValue: 'Danger',
      value: 20,
      tooltip: 'Danger',
      bgColor: '#d9534f'
    }
  ];

  ...

```


Use the `ngx-stacked-progressbar` component:
```html
<ngx-stacked-progressbar [data]="data" width="700px" height="20px">
</ngx-stacked-progressbar>
```

#### Inputs
```typescript
  @Input() fontSize = '12px';
  @Input() width = '100%';
  @Input() height = '24px';
  @Input() color = 'white';
  @Input() public data: StackedProgressbarBlock[] = [];
```

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