Skip to main content
100%

Clickable Circles from CSV

✓ Published3🌍 Public
CCurran Kelleher
Last edited Sep 4, 2025
Created on Sep 4, 2025

This example displays a scatterplot of colored circles loaded from a CSV file, where clicking a circle highlights it with a black outline. Built with React and D3 v7, it uses the `csv` function to parse data and the `select` API with a `join` operation to bind circle elements to each data row. The `selectedId` state triggers a re-render, applying the stroke style via a conditional attribute.

AI-generated description
MIT Licensed

Similar vizzes