';
                legendBox.style.display = 'none';
                cashflowSection.style.display = 'none';
                noDataMessage.style.display = 'block';
            } else {
                chartBox.style.display = 'flex';
                legendBox.style.display = 'flex';
                cashflowSection.style.display = 'flex';
                noDataMessage.style.display = 'none';
                
                const categoryData = calculateCategoryBreakdown(monthExpenses);
                updat