# charts-lib-arpit

> A library for making charts for react

Latest version **0.6.1** (published 2022-06-05) · 0 weekly downloads

## Install

```sh
npm install charts-lib-arpit
pnpm add charts-lib-arpit
yarn add charts-lib-arpit
bun add charts-lib-arpit
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.1 |
| Published | 2022-06-05 |
| First published | 2022-06-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | arpitkarnatak |
| Maintainers | arpitkarnatak |
| Keywords | react, components, ui |

## Links

- npm: https://www.npmjs.com/package/charts-lib-arpit
- Repository: https://github.com/arpitkarnatak/charts-lib-arpit
- Homepage: https://github.com/arpitkarnatak/charts-lib-arpit#readme
- Issues: https://github.com/arpitkarnatak/charts-lib-arpit/issues
- npm.io page: https://npm.io/package/charts-lib-arpit

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@mesalvo/react-ui](https://npm.io/package/@mesalvo/react-ui.md) — 1.7K weekly downloads

## Recent versions

- 0.6.1 (latest) — 2022-06-05
- 0.6.0 — 2022-06-05
- 0.5.0 — 2022-06-05
- 0.4.0 — 2022-06-05
- 0.3.0 — 2022-06-05
- 0.2.0 — 2022-06-05
- 0.1.0 — 2022-06-05

## README

## Charts Lib

charts-lib is a simple library to plot charts in React. 

## Bar Charts

A bar chart can be plotted using the following format
```jsx
<BarChart
	divisions={10}
	minValue={0}
	maxValue={100}
	height="400px"
	dataPoints={[
					[{
						label:  'A',
						value:  60,
					},
					{
						label:  'B',
						value:  100,
					}],
					[{
						label:  'A',
						value:  82,
					},
					{
						label:  'B',
						value:  99,
					}]
				]}
/>
```
 
 The parameters for the BarChart object are as follows:
 
 <b>dataPoints: BarChartItem[][]</b> This is the list of data points. It is a 2D array of <b>BarChartItem</b> which consists of the following parameters.
 ```ts
 interface BarChartItem {
	 label: string;
	 value: number;
	 color?: string;
	 }
 ```
 The optional parameter `color` can be used if we want to do different colors than the ones provided.
 
 <b>height: string</b> Height takes a string parameter for the entire chart. The heights of the bars are calculated as a percentage of this height. 
 
 <b>minValue: number</b> Takes in a number for the maximum value in the `BarChartItem` class.
 
 <b>maxValue: number</b> Takes in a number for the minimum value in the `BarChartItem` class.
 
 <b>divisions: number</b> Number of divisions we want to see in our chart (still under development).

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