A simple React wrapper for Chart.js.
You can see a working demo and try with codesandbox.
npm install --save @kimizuy/react-chartjs
// or
yarn add @kimizuy/react-chartjs
import { Bar } from '@kimizuy/react-chartjs'
<Bar data={...} />
This repo is using Vite, TypeScript and yarn workspaces.
Clone this repo:
git clone https://github.com/kimizuy/react-chartjs.git
Install packages:
yarn
Run the example:
yarn example dev
Build for library:
yarn main build
MIT