# dashbi-widget-gauge

> Gauge widget for Dashbi

Latest version **0.1.0** (published 2019-09-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install dashbi-widget-gauge
pnpm add dashbi-widget-gauge
yarn add dashbi-widget-gauge
bun add dashbi-widget-gauge
```

## 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.1.0 |
| Published | 2019-09-03 |
| First published | 2019-09-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 18 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marek Sierociński |
| Maintainers | marverix |
| Keywords | dashbi, dashbi-widget, chart, chartist, gauge, knob, metter |

## Links

- npm: https://www.npmjs.com/package/dashbi-widget-gauge
- npm.io page: https://npm.io/package/dashbi-widget-gauge

## Dependencies (2)

- [chartist](https://npm.io/package/chartist.md) ^0.11.3
- [v-chartist](https://npm.io/package/v-chartist.md) ^0.1.6

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-09-03

## README

# dashbi-widget-gauge

Dashbi widget that displays gauge using [chartist.js](https://gionkunz.github.io/chartist-js/)

![screenshot](_screenshot.png)

## Usage

### Install

```sh
npm install --save dashbi-widget-gauge
```

### Register

Dashbi should detect and auto-register widget.

### Configuration

Name | Type | Description
--- | --- | ---
`current` | String | Which state key should be used for current number
`total` | String | Which state key should be used for total number

### Example

Lets' say that `some-data-provider` provides state which has key `randomNumber` and `ofTotal`:

```js
dashbiLayout.addWidget({
  name: 'gauge',
  title: 'Cool Gauge',
  params: {
    current: 'randomNumber',
    total: 'ofTotal'
  },
  source: {
    name: 'some-data-provider'
  }
});
```

### Colors

Background of widget will change color according to `current` value.
0% will be red (#E15554), 50% yellow (#E1BC29) and 100% green (#3BB273).

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