dth;
        const height = svg.clientHeight || svg.parentNode.clientHeight;
        center.x = width / 2;
        center.y = height / 2;
    }


    d3.json('final_weights_with_pics.json').then(function(data) {
        updateCenter();
    data = data.slice(0, 200)
    const maxProfiles = data.length;
    document.getElementById('pfpCountSlider').max = maxProfiles;
    document.getElementById('pfpCountSlider').value = maxProfiles / 2;
    document.getElementById('pfpCount').textContent = 100; // Default to 