# react-really-easy-charts

> A simple bar chart react component

Latest version **1.0.5** (published 2019-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-really-easy-charts
pnpm add react-really-easy-charts
yarn add react-really-easy-charts
bun add react-really-easy-charts
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-07-18 |
| First published | 2019-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aidan Taylor-Lynch |
| Maintainers | aidantaylorlynch |
| Keywords | react, typescript, chart.js |

## Links

- npm: https://www.npmjs.com/package/react-really-easy-charts
- Repository: https://github.com/Aidantaylorlynch/react-really-easy-charts
- Homepage: https://github.com/Aidantaylorlynch/react-really-easy-charts#readme
- Issues: https://github.com/Aidantaylorlynch/react-really-easy-charts/issues
- npm.io page: https://npm.io/package/react-really-easy-charts

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-07-18
- 1.0.4 — 2019-07-18
- 1.0.3 — 2019-07-18
- 1.0.2 — 2019-07-18
- 1.0.1 — 2019-07-18
- 1.0.0 — 2019-07-18

## README

# react-really-easy-charts
A simple bar chart react component built with [chart.js](https://www.chartjs.org/).


# Usage
~~~~ 
npm install --save react-really-easy-charts
~~~~

~~~~ 
import { BarChart } from 'react-really-easy-charts'

class App extends Component {

  render() {
    return(
      <div>
        <BarChart 
            countForEachBar={ [ 1, 5, 15 ] } 
            labelForEachBar={ [ 'monday', 'tuesday', 'wednesday' ] } 
            barChartLabel={ "Unique Users" } 
            rgba={ [ 13, 102, 255, 0.8 ] } 
            />
      </div>
    );
  };
};

export default App;
~~~~

# Props
## countForEachBar: number[]
- The **Y** value for each verticle bar in the chart.
- The **order** of the values should correspond to the order of the values in the **labelForEachBar** list.
## labelForEachBar: any[]
- The **label** for each verticle bar in the chart.
- The **order** of the values should correspond to the order of the values in the **countForEachBar** list.
## barChartLabel: string
- The **label** for the bar chart.
## rgba: number[]
- A list of 4 numbers that are passed into the css rgba function to provide a colour for chart.

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