Fix issue with stats
This commit is contained in:
parent
ee43de1c82
commit
b7d8bda735
@ -93,6 +93,12 @@ pub async fn balance_variation(
|
|||||||
.insert(target_account_id, old_amount + m.amount);
|
.insert(target_account_id, old_amount + m.amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add missing end entries, if necessary
|
||||||
|
while stat_entry.time < end {
|
||||||
|
dataset.push(stat_entry.clone());
|
||||||
|
stat_entry.time += interval as i64;
|
||||||
|
}
|
||||||
|
|
||||||
// Final push
|
// Final push
|
||||||
dataset.push(stat_entry);
|
dataset.push(stat_entry);
|
||||||
|
|
||||||
|
@ -201,7 +201,6 @@ export function StatChart(p: {
|
|||||||
id: 0,
|
id: 0,
|
||||||
label: "Total",
|
label: "Total",
|
||||||
dataKey: "sum",
|
dataKey: "sum",
|
||||||
stack: "total",
|
|
||||||
area: false,
|
area: false,
|
||||||
showMark: false,
|
showMark: false,
|
||||||
},
|
},
|
||||||
@ -210,7 +209,6 @@ export function StatChart(p: {
|
|||||||
id: a.id,
|
id: a.id,
|
||||||
label: a.name,
|
label: a.name,
|
||||||
dataKey: a.id.toString(),
|
dataKey: a.id.toString(),
|
||||||
stack: "total",
|
|
||||||
area: false,
|
area: false,
|
||||||
showMark: false,
|
showMark: false,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user