i tried the below code,but its not working,have to place the text content inside doughnut
What I have tried:
<p-chart
type="doughnut"
[data]="data" [options]="doughnutOptions">
this.data = {
labels: ['a', 'b', 'c', 'd', 'e'],
datasets: [
{
data: [],
backgroundColor: [
'green',
'#51087E',
'#ffd740',
'red',
'#5500FF',
],
},
],
};
this.doughnutOptions = {
responsive: true,
plugins: {
legend: {
position: 'right',
labels: {
boxWidth: 17,
boxHeight: 15,
color: '#000000',
},
},
},
};