score:0

Accepted answer

you need to define the cutoutpercentage option inside the chart options as follows:

<doughnut
    data={data}
    options={{
      responsive: true,
      cutoutpercentage: 80,
      ...
    }}
  />

cutoutpercentage: the percentage of the chart that is cut out of the middle (default value is 50).

score:1

edit cutout property in options


let options = {
  responsive: true,
  cutout:"80%",
  legend: {
    display: false,
  },
  layout: {
    padding: 10,
  },
};


Related Query

More Query from same tag