podzial dzienny

This commit is contained in:
Mateusz Gruszczyński
2025-09-17 21:12:51 +02:00
parent 74117ccf5b
commit 3f9011aac1
2 changed files with 12 additions and 3 deletions

View File

@@ -171,4 +171,11 @@ document.addEventListener("DOMContentLoaded", function () {
if (document.getElementById('chart-tab').classList.contains('active')) {
loadExpenses("currentmonth");
}
document.getElementById('toggleDailySplit').addEventListener('click', function() {
// Zmień typ podziału na dzienny i odśwież dane wykresu
currentRangeType = 'daily';
refreshChart();
});
});