mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
add chart tab to insights & explore page
This commit is contained in:
@@ -31,6 +31,7 @@ export interface CommonPieChartProps {
|
||||
colorField?: string;
|
||||
hiddenField?: string;
|
||||
minValidPercent?: number;
|
||||
amountValue?: boolean;
|
||||
defaultCurrency?: string;
|
||||
showValue?: boolean;
|
||||
showPercent?: boolean;
|
||||
@@ -74,7 +75,7 @@ export function usePieChartBase(props: CommonPieChartProps) {
|
||||
};
|
||||
|
||||
finalItem.displayPercent = formatPercentToLocalizedNumerals(finalItem.percent, 2, '<0.01');
|
||||
finalItem.displayValue = formatAmountToLocalizedNumeralsWithCurrency(finalItem.value, props.defaultCurrency);
|
||||
finalItem.displayValue = props.amountValue ? formatAmountToLocalizedNumeralsWithCurrency(finalItem.value, props.defaultCurrency) : finalItem.value.toString();
|
||||
|
||||
validItems.push(finalItem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user