fix the non-amount numbers in charts are not formatted using localized number formatting
This commit is contained in:
@@ -84,6 +84,7 @@ const {
|
||||
getCurrentLanguageTextDirection,
|
||||
formatAmountToWesternArabicNumeralsWithoutDigitGrouping,
|
||||
formatAmountToLocalizedNumeralsWithCurrency,
|
||||
formatNumberToLocalizedNumerals,
|
||||
formatPercentToLocalizedNumerals
|
||||
} = useI18n();
|
||||
|
||||
@@ -403,7 +404,7 @@ function getDisplayValue(value: number): string {
|
||||
return formatAmountToLocalizedNumeralsWithCurrency(value, props.defaultCurrency);
|
||||
}
|
||||
|
||||
return value.toString();
|
||||
return formatNumberToLocalizedNumerals(value);
|
||||
}
|
||||
|
||||
function clickItem(e: ECElementEvent): void {
|
||||
|
||||
Reference in New Issue
Block a user