Merge remote-tracking branch 'origin/test/SUPPORT-8717_with_formatter' into ervu/tmp_makets
* origin/test/SUPPORT-8717_with_formatter: SUPPORT-8717: + new label formatter for number to local string
This commit is contained in:
commit
01f0d39dbd
1 changed files with 13 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
import {
|
||||
ChartLabelModel
|
||||
} from "../../../../../generated/ervu_business_metrics/model/chart/round/label/ChartLabelModel";
|
||||
import {NumberToLocalStringFormatter} from "../../../../formatter/NumberToLocalStringFormatter";
|
||||
import {ChartLabelFormatter} from "./ChartLabelFormatter";
|
||||
|
||||
export class LabelNumberToLocalStringFormatter implements ChartLabelFormatter {
|
||||
private readonly textFormatter = new NumberToLocalStringFormatter();
|
||||
|
||||
format(label: ChartLabelModel, labels?: ChartLabelModel[], index?: number): void {
|
||||
label.text = this.textFormatter.format(label.text);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue