           });
        }
        
        // Sector Allocation Chart
        const sectorLabels = {{ sector_labels|tojson }};
        const sectorValues = {{ sector_values|tojson }};
        
        if (sectorLabels.length > 0) {
            const sectorCtx = document.getElementById('sectorChart').getContext('2d');
            const sectorColors = [
                '#4bc0c0', '#36a2eb', '#ffcd56', '#ff6384', '#9966ff', '#ff9f40',
                '#2ecc71', '#3498db', '#f1c40f', '#e74c3c', '#9b59b6', '#e67e