import {
  ChartLabelModel
} from "../../../../../generated/ru/micord/ervu_dashboard/model/chart/round/label/ChartLabelModel";
import {FormatterUtils} from "../../../../formatter/FormatterUtils";
import {ChartLabelFormatter} from "./ChartLabelFormatter";

export class NumberToLocalStringLabelFormatter implements ChartLabelFormatter {
  format(label: ChartLabelModel, labels?: ChartLabelModel[], index?: number): void {
    label.text = FormatterUtils.toLocalString(label.text);
  }
}
