# chartjs-react-ts

> A minimal React TypeScript wrapper for ChartJs provides access to the instance by ref.

Latest version **1.0.0** (published 2021-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install chartjs-react-ts
pnpm add chartjs-react-ts
yarn add chartjs-react-ts
bun add chartjs-react-ts
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-07-11 |
| First published | 2021-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 29.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vf |
| Maintainers | vf1 |

## Links

- npm: https://www.npmjs.com/package/chartjs-react-ts
- npm.io page: https://npm.io/package/chartjs-react-ts

## Dependencies (1)

- [chart.js](https://npm.io/package/chart.js.md) ^3.4.1

## Recent versions

- 1.0.0 (latest) — 2021-07-11

## README

# chartjs-react-ts

A minimal React TypeScript wrapper for ChartJs provides access to the instance by ref.

## Installation

`npm i chartjs-react-ts`
OR
`yarn add chartjs-react-ts`

```
import { ChartJs } from 'chartjs-react-ts'
import { Chart, <REQUIRED FEATURES> } from 'chart.js'

Chart.register(<REQUIRED FEATURES>);

const App = () => {
  const chartRef = useRef<Chart | null>(null);

  return (
    <ChartJs type='line' data={data} options={options} chartRef={chartRef}>Not supported</ChartJs>
  )
}
```

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