hide percent for outflows/inflows by account categorical chart

This commit is contained in:
MaysWind
2025-10-27 23:47:04 +08:00
parent f93610b5e0
commit 765e64d96f
8 changed files with 55 additions and 15 deletions
@@ -212,6 +212,11 @@ export function useStatisticsTransactionPageBase() {
return tt('Total Amount');
});
const showPercentInCategoricalChart = computed<boolean>(() => {
return query.value.chartDataType !== ChartDataType.OutflowsByAccount.type &&
query.value.chartDataType !== ChartDataType.InflowsByAccount.type;
});
const showTotalAmountInTrendsChart = computed<boolean>(() => {
return query.value.chartDataType !== ChartDataType.TotalOutflows.type &&
query.value.chartDataType !== ChartDataType.TotalExpense.type &&
@@ -300,6 +305,7 @@ export function useStatisticsTransactionPageBase() {
canUseKeywordFilter,
showAmountInChart,
totalAmountName,
showPercentInCategoricalChart,
showTotalAmountInTrendsChart,
translateNameInTrendsChart,
categoricalAnalysisData,