ue || [];
            
            new Chart(revenueCtx, {
                type: 'line',
                data: {
                    labels: revenueData.length > 0 ? 
                        revenueData.map(item => new Date(item.date).toLocaleDateString()) : 
                        ['No Data'],
                    datasets: [{
                        label: 'Revenue',
                        data: revenueData.length > 0 ? 
                            revenueData.map(item => item.revenue || 0) : 
          