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:
MaysWind
2025-10-28 00:44:42 +08:00
parent 765e64d96f
commit 52bab6f726
7 changed files with 53 additions and 7 deletions
@@ -58,7 +58,7 @@ interface MonthlyTrendsChartDataItem {
selected: boolean;
type: string;
areaStyle?: object;
stack: string;
stack?: string;
animation: boolean;
data: number[];
}
@@ -219,11 +219,16 @@ const allSeries = computed<MonthlyTrendsChartDataItem[]>(() => {
},
selected: true,
type: 'line',
stack: 'a',
animation: !props.skeleton,
data: allAmounts
};
if (props.stacked) {
finalItem.stack = 'a';
} else if (props.idField && item[props.idField]) {
finalItem.stack = item[props.idField] as string;
}
if (props.type === TrendChartType.Area.type) {
finalItem.areaStyle = {};
} else if (props.type === TrendChartType.Column.type) {