CCurran Kelleher
Last edited Nov 20, 2026
Created on Nov 20, 2026
Five circles plot data points loaded from a CSV file, with click interactions that highlight the selected circle by turning it white with a black outline. The React app uses a custom `useContainerDimensions` hook with a `ResizeObserver` to track container size, and D3's `scaleLinear` and `selectAll().join()` to render the circles.
AI-generated descriptionReact D3 Starter
A minimal React + D3 starter for building interactive data visualizations.
Files
index.html— page shell and import map (React + D3 from a CDN).index.jsx— mounts the<App />component.App.jsx— loadsdata.csvand renders the visualization.viz.js— D3 render entry point.renderCircles.js— draws the circles.useContainerDimensions.js— tracks the container size.data.csv— sample data.styles.css— page styles.
Getting started
Edit App.jsx to change what gets rendered; the preview updates live as you type.
Comments
Sign in to join the discussion.