       const ctx = document.getElementById('typeChart').getContext('2d');
            const data = statsData.downloads_by_type;
            const labels = Object.keys(data).filter(key => data[key] > 0);
            const values = labels.map(key => data[key]);
            
            new Chart(ctx, {
                type: 'doughnut',
                data: {
                    labels: labels.map(label => label.charAt(0).toUpperCase() + label.slice(1)),
                    datasets: [{
                      