0👍
Add chart type to options to map correctly:
public doughnutChartOptions: ChartConfiguration<'doughnut'>['options'] = {
cutout: '50%', // percentage of chart to cut out of the middle
//cutout: 100, // pixels
...
};
- Chartjs-Chartjs 2 Line Graph Single Stroke Between Datasets
- Chartjs-Data will not draw onto my chart
Source:stackexchange.com