fix: Apply metric d3format when currency config is {} for table charts (#34127)

This commit is contained in:
Vitor Avila
2025-07-10 22:44:22 -03:00
committed by GitHub
parent d269e3d187
commit 75ee4edc6a
2 changed files with 2 additions and 2 deletions

View File

@@ -416,7 +416,7 @@ const processColumns = memoizeOne(function processColumns(
// percent metrics have a default format
formatter = getNumberFormatter(numberFormat || PERCENT_3_POINT);
} else if (isMetric || (isNumber && (numberFormat || currency))) {
formatter = currency
formatter = currency?.symbol
? new CurrencyFormatter({
d3Format: numberFormat,
currency,