I have this code in my next.js project where I am using the react-chartjs-2 library to create charts. the cutoutPercentage property in chart.js theoretically makes the donut chart thinner, but in next.js it doesn't work. how can I make it to work?
import { Doughnut } from 'react-chartjs-2';
const data = {
datasets: [
{
data: [15, 12, 40, 30],
backgroundColor: ["#c5e99b", "#8fbc94", "#548687", "#56445d"],
},
],
};
const Options = {
tooltips: {
enabled: false,
},
cutoutPercentage: 70,
responsive: true,
maintainAspectRatio: false,
}
export default () => (
<Doughnut
data={data}
width={290}
height={290}
options={Options}
/>
);