mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
change the outflows/inflows by account trend charts to non-stacked charts and hide the total amount for these charts
This commit is contained in:
@@ -218,7 +218,9 @@ export function useStatisticsTransactionPageBase() {
|
||||
});
|
||||
|
||||
const showTotalAmountInTrendsChart = computed<boolean>(() => {
|
||||
return query.value.chartDataType !== ChartDataType.TotalOutflows.type &&
|
||||
return query.value.chartDataType !== ChartDataType.OutflowsByAccount.type &&
|
||||
query.value.chartDataType !== ChartDataType.InflowsByAccount.type &&
|
||||
query.value.chartDataType !== ChartDataType.TotalOutflows.type &&
|
||||
query.value.chartDataType !== ChartDataType.TotalExpense.type &&
|
||||
query.value.chartDataType !== ChartDataType.TotalInflows.type &&
|
||||
query.value.chartDataType !== ChartDataType.TotalIncome.type &&
|
||||
@@ -226,6 +228,11 @@ export function useStatisticsTransactionPageBase() {
|
||||
query.value.chartDataType !== ChartDataType.NetIncome.type;
|
||||
});
|
||||
|
||||
const showStackedInTrendsChart = computed<boolean>(() => {
|
||||
return query.value.chartDataType !== ChartDataType.OutflowsByAccount.type &&
|
||||
query.value.chartDataType !== ChartDataType.InflowsByAccount.type;
|
||||
});
|
||||
|
||||
const translateNameInTrendsChart = computed<boolean>(() => {
|
||||
return query.value.chartDataType === ChartDataType.TotalOutflows.type ||
|
||||
query.value.chartDataType === ChartDataType.TotalExpense.type ||
|
||||
@@ -307,6 +314,7 @@ export function useStatisticsTransactionPageBase() {
|
||||
totalAmountName,
|
||||
showPercentInCategoricalChart,
|
||||
showTotalAmountInTrendsChart,
|
||||
showStackedInTrendsChart,
|
||||
translateNameInTrendsChart,
|
||||
categoricalAnalysisData,
|
||||
categoricalAllAnalysisData,
|
||||
|
||||
Reference in New Issue
Block a user