An open API service indexing awesome lists of open source software.

https://github.com/akbaruddin/components-gauge

Component Gauge
https://github.com/akbaruddin/components-gauge

component gauge plugin react reactjs reactjs-components

Last synced: 4 months ago
JSON representation

Component Gauge

Awesome Lists containing this project

README

          

# Component Gauge

Simple React Component to create Gauge.

![npm bundle size](https://img.shields.io/bundlephobia/minzip/components-gauge?style=for-the-badge)
![NPM](https://img.shields.io/npm/l/components-gauge?style=for-the-badge)
![npm](https://img.shields.io/npm/v/components-gauge?style=for-the-badge)
![npm](https://img.shields.io/npm/dw/components-gauge?style=for-the-badge)

Demo:

```bash
# npm
npm i components-gauge --save

# yarn
yarn add components-gauge

# pnpm
pnpm i components-gauge
```

### Usage

```jsx
import React, { Component } from "react";
import Gauge from "components-gauge";

export default function App() {
return (

);
}
```

## Props

| Prop | Default | Description |
| -------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------- |
| animated | true | Animation |
| width | 200 | width of chart 200px |
| height | 200 | height of chart 200px |
| baseStroke | 2 | |
| filledStroke | 2.5 | |
| baseColor | #eee | |
| filledColor | #666 | |
| textColor | #999 | |
| radius | 40 | |
| showValue | false | |
| time | 10000(10s) | |
| onEnd | Empty | Event on end |

## License

MIT Licensed.