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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user