I'm developing a dashboard using a primeng module . I had a doughnut chart with labels and the labels were placed on top of the doughnut chart. Now I need labels to place them on the side.
Could you please guide me on this thing.
My code :
this.inspectionStorageBarChart = {
labels: ['Completed', 'Due', 'Pending', 'Deficient', 'Report'],
datasets: [
{
data: [],
backgroundColor: [
'green',
'#51087E',
'#ffd740',
'red',
'#5500FF',
],
},
],
};
this.pieOptions = {
plugin: {
legend: {
labels: { position: 'right' },
},
},
};