      }
        
        // Display results
        function displayResults(label, results) {
            const resultsDiv = document.getElementById('results');
            const metricsDiv = document.getElementById('metrics');
            
            resultsDiv.style.display = 'block';
            
            // Remove existing results for this label
            const existingResults = metricsDiv.querySelectorAll(`[data-label="${label}"]`);
            existingResults.forEach(el => el.remove());
        