/** The PieChartArchPathInputProcessor class processes input data to generate options for rendering a pie or donut chart with D3.js. */
export class PieChartTextInputProcessor {
  /**
   * This function processes input data to generate options for rendering a pie or donut chart with D3.js.
   *
   * @param {ChartArcOptions} input - chartArcPathInputProcessor process result
   * @returns {TextInputType[]} An object with a property `renderOptions` which contains an object with properties `data`,
   * `colors`, `outerRadius`, `donutRadius`, and `center`.
   */
  process(input) {
    const { center } = input;
    const textArray = [
      {
        text: '',
        position: center,
        textAnchor: 'middle',
        styleToken: 'v-font-footnote2-short',
      },
    ];
    return textArray;
  }
}
