Open AkankshaGawade opened 1 year ago
in terminal : npm install --save chart.js react-chartjs-2 header file : import { Chart as ChartJS, ArcElement, Tooltip, Legend } from "chart.js"; import { Doughnut } from "react-chartjs-2";
inside the function ..above the return statement : (ChartJS.register(ArcElement, Tooltip, Legend);)
in terminal : npm install --save chart.js react-chartjs-2 header file : import { Chart as ChartJS, ArcElement, Tooltip, Legend } from "chart.js"; import { Doughnut } from "react-chartjs-2";
inside the function ..above the return statement : (ChartJS.register(ArcElement, Tooltip, Legend);)
What was the issue? @AkankshaGawade Did you manage to fix it?
error:"arc" is not a registered element. Tried many solutions but still it doesn't resolved. Can anyone help, please?