# react-satti-chart

> react charts

Latest version **1.0.1** (published 2022-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-satti-chart
pnpm add react-satti-chart
yarn add react-satti-chart
bun add react-satti-chart
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-08-28 |
| First published | 2022-08-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 52.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Karthick SG |
| Maintainers | karthisgk |
| Keywords | react-chart |

## Links

- npm: https://www.npmjs.com/package/react-satti-chart
- Repository: https://github.com/karthisgk/react-satti-chart
- Homepage: https://github.com/karthisgk/react-satti-chart#readme
- Issues: https://github.com/karthisgk/react-satti-chart/issues
- npm.io page: https://npm.io/package/react-satti-chart

## Dependencies (1)

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

## 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

- 1.0.1 (latest) — 2022-08-28
- 1.0.0 — 2022-08-28
- 0.0.20 — 2022-08-28
- 0.0.19 — 2022-08-28
- 0.0.18 — 2022-08-28
- 0.0.17 — 2022-08-28
- 0.0.16 — 2022-08-27
- 0.0.15 — 2022-08-27
- 0.0.14 — 2022-08-27
- 0.0.13 — 2022-08-27
- 0.0.12 — 2022-08-27
- 0.0.11 — 2022-08-27
- 0.0.10 — 2022-08-27
- 0.0.9 — 2022-08-27
- 0.0.8 — 2022-08-27
- … 7 more at https://npm.io/package/react-satti-chart/versions

## README

# REACT SATTI CHART

A simple Bar Chart component for ReactJS

## Intall

You can get it on NPM installing `react-satti-chart` component as a project dependency.

```shell
npm install react-satti-chart
```

![Screen Shot](https://raw.githubusercontent.com/karthisgk/react-satti-chart/main/assets/images/light.png)

![Screen Shot](https://raw.githubusercontent.com/karthisgk/react-satti-chart/main/assets/images/dark.png)

## Setup

You'll need to add `react-satti-chart` to your app.js or any other component where you want to use loader. So that, the `<BarChart />` components will be accessible in your application.

```javascript
...
import { BarChart } from "react-satti-chart";
...
function App() {
	const [data, setData] = useState([])
	useEffect(() => {
		setData([
			{
				label: "Jan",
				value: 120
			},
			{
				label: "Feb",
				value: 160
			},
			{
				label: "Mar",
				value: 190
			},
			{
				label: "Apr",
				value: 60
			},
			{
				label: "May",
				value: 90
			}
		])
	}, [])

	return (
		<div className="App">
			<BarChart
				width="400"
				height="500"
				data={data}
				barColor="purple"
				barWidth={50}
			/>
		</div>
	);
}
```
## Options

- `data`: Array - it should be label & values of array ex([{label: "A", value: 80}])
- `width`: string - width of the canvas element;
- `height`: string - height of the canvas element;
- `isDarkMode`: booloan - default false;
- `showValue`: booloan - default true, if false values will not visible in top of the each bar
- `showYIndicatorLines`: booloan - default true, if false Y indicator lines will not visible
- `lineColor`: string - line color of X & Y
- `barColor`: string - applies color of each bar
- `textColor`: string - applies color of every text
- `increamentY`: number - increaments of Y axis
- `barWidth`: number - width of the bar size

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