Viewing a saved revision (read-only)
zlQOMS0C-82pFfNO_hcg3
Rrithwikjadala2003@gmail.com
Last edited Nov 14, 2026
Created on Nov 14, 2026
Five black circles are plotted in a scatterplot from `data.csv`, scaled to fill the viewport with `d3.scaleLinear`. Clicking a circle turns it white with a black stroke, tracked by React state via `useState` and passed to the D3 `on` click handler. The visualization re-renders through `viz.js` and `renderCircles.js`, using `ResizeObserver` to adapt to container dimensions.
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.