SUPPORT-8717: fix for review (1)
This commit is contained in:
parent
8af49bd4ff
commit
3c0e82d16a
1 changed files with 2 additions and 2 deletions
|
|
@ -5,9 +5,9 @@ import {NumberToLocalStringFormatter} from "../../../../formatter/NumberToLocalS
|
|||
import {ChartLabelFormatter} from "./ChartLabelFormatter";
|
||||
|
||||
export class LabelNumberToLocalStringFormatter implements ChartLabelFormatter {
|
||||
private readonly textFormatter = new NumberToLocalStringFormatter();
|
||||
private static readonly format = NumberToLocalStringFormatter.prototype.format;
|
||||
|
||||
format(label: ChartLabelModel, labels?: ChartLabelModel[], index?: number): void {
|
||||
label.text = this.textFormatter.format(label.text);
|
||||
label.text = LabelNumberToLocalStringFormatter.format(label.text);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue