langPercentFromDonutLayoutSvg = (d, centerX, centerY) => {
  const dTmp = getNumbersFromSvgPathDefinitionAttribute(d);
  const endAngle =
    cartesianToPolar(centerX, centerY, dTmp[0], dTmp[1]).angleInDegrees + 90;
  let startAngle =
    cartesianToPolar(centerX, centerY, dTmp[7], dTmp[8]).angleInDegrees + 90;
  if (startAngle > endAngle) {
    startAngle -= 360;
  }
  return (endAngle - startAngle) / 3.6;
}
Retrieve the language percentage from the donut chart SVG.

@param {string} d The SVG path element.
@param {number} centerX The center X coordinate of the donut chart.
@param {number} centerY The center Y coordinate of the donut chart.
@returns {number} The percentage of the language.