Donut chart center text not aligned

In some circumstances the text in the center of a donut chart is not center-aligned horizontally in the middle of the donut. It can be too far to the left or right. This sometimes means it is partially hidden behind the donut.

It looks like the center text may be center-aligned within the overall chart drawing area. However, sometimes the donut is shifted to the left or the right inside the chart area due to uneven text sizes in the labels for the segments. That seems to be why the center of the center text doesn’t align with the center of the donut horizontally.