t.getElementById('pfpCountSlider').value
        const filteredData = data.slice(0, value);
        drawNodes(filteredData); // Assuming 'data' is accessible, or you need to manage its scope
    });

    let usernamesVisible = true;

    document.getElementById('toggleUsernamesButton').addEventListener('click', function() {
        usernamesVisible = !usernamesVisible;
        svg.selectAll('.node-username')
            .style('display', usernamesVisible ? 'block' : 'none');
    });
    
});

</script>
</bo