0👍
You need to install chart.js
too, also you need to register them like this:
import { Chart as ChartJS, ArcElement, Tooltip, Legend } from "chart.js";
import { Doughnut } from "react-chartjs-2";
ChartJS.register(ArcElement, Tooltip, Legend);
<Doughnut data={...} />
- Chartjs-HighlightFill for radar charts in chartJS
- Chartjs-Generator-angular-fullstack and angular-chart.js not displaying charts
Source:stackexchange.com