You can place both LABEL and its value in the center of the donut.
.
import { Component, OnInit } from '@angular/core';
import { ChartType } from 'chart.js';
import { SingleDataSet, Label, PluginServiceGlobalRegistrationAndOptions } from 'ng2-charts';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
public doughnutChartLabels = ['Download Sales', 'In-Store Sales'];
public doughnutChartData: SingleDataSet = [
[350, 450]
];
public doughnutChartType: ChartType = 'doughnut';
public doughnutChartPlugins: PluginServiceGlobalRegistrationAndOptions[] = [{
afterDraw(chart) {
const ctx = chart.ctx;
var txt1 = '';
var txt2 = '';
try{
var check = chart.active ? chart.tooltip._active[0]._datasetIndex : "None";
if(check !== "None"){
txt1 = chart.tooltip._data.labels[chart.tooltip._active[0]._index];
txt2 = chart.tooltip._data.datasets[0].data[chart.tooltip._active[0]._index];
}else{
txt1 = chart.tooltip._data.labels[0];
txt2 = chart.tooltip._data.datasets[0].data[0];
}
}
catch(err){
txt1 = chart.tooltip._data.labels[0]
txt2 = chart.tooltip._data.datasets[0].data[0];
}
const sidePadding = 60;
const sidePaddingCalculated = (sidePadding / 100) * (chart.innerRadius * 2)
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
const centerX = ((chart.chartArea.left + chart.chartArea.right) / 2);
const centerY = ((chart.chartArea.top + chart.chartArea.bottom) / 2);
const stringWidth = ctx.measureText(txt1).width;
const elementWidth = (chart.innerRadius * 2) - sidePaddingCalculated;
const widthRatio = elementWidth / stringWidth;
const newFontSize = Math.floor(30 * widthRatio);
const elementHeight = (chart.innerRadius * 2);
const fontSizeToUse = 30;
ctx.font = fontSizeToUse + 'px Arial';
ctx.fillStyle = 'black';
ctx.fillText(txt2, centerX, centerY - 10);
var fontSizeToUse1 = 15;
ctx.font = fontSizeToUse1 + 'px Arial';
ctx.fillText(txt1, centerX, centerY + 10);
}
}];
constructor() { }
ngOnInit() {
}
public chartClicked({ event, active }: { event: MouseEvent, active: {}[] }): void {
}
public chartHovered({ event, active }: { event: MouseEvent, active: {}[] }): void {
}
}
HTML
<div>
<div>
<div style="display: block">
<canvas baseChart [data]="doughnutChartData" [labels]="doughnutChartLabels" [chartType]="doughnutChartType"
[plugins]="doughnutChartPlugins" (chartHover)="chartHovered($event)"
(chartClick)="chartClicked($event)"></canvas>
</div>
</div>
</div>

:)