ener('input', function() {
        updateCenter();
        const value = this.value;
        const filteredData = data.slice(0, value);
        document.getElementById('pfpCount').textContent = value; // Update the displayed count

        drawNodes(filteredData); // Redraw with the filtered data
    });

    window.addEventListener('resize', function() {
        updateCenter();
        // You may need to call a function to redraw your visualization here
        // For example:
        const value = documen