add top 5 amount share and transactions for 80% of amount to value metric in insights explorer

This commit is contained in:
MaysWind
2026-04-15 00:45:59 +08:00
parent 53702e68d8
commit 50472d437a
4 changed files with 57 additions and 23 deletions
+2 -1
View File
@@ -70,6 +70,7 @@ const props = defineProps<{
displayOrdersField?: string;
translateName?: boolean;
amountValue?: boolean;
percentValue?: boolean;
defaultCurrency?: string;
enableClickItem?: boolean;
tooltipExtraColumnNames?: string[];
@@ -477,7 +478,7 @@ function getItemName(name: string): string {
}
function getDisplayValue(value: number): string {
if (props.oneHundredPercentStacked) {
if (props.oneHundredPercentStacked || props.percentValue) {
return formatPercentToLocalizedNumerals(value, 2, '<0.01');
}