In Doughnut chart that value of percentage should be customized like this
This is my doughnut chart look like this
Is there any way for doing this in ng2 charts?
There are my code I used
public barChartType: ChartType = 'doughnut';
public barChartData: ChartDataSets[] = [
{ data: [20,20,30] }
];
public barChartOptions: ChartOptions = {
responsive: false,
maintainAspectRatio: false,
legend: {
display: false
},
tooltips: {
enabled: false
},
plugins: {
labels: false
},
showLines: false,
cutoutPercentage: 70,
};
public doughnutChartColors2: Array<any> = [{
backgroundColor: ['#58dfa7']
}];