Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of CV: Loading CSV Data

Public visualization

Fork of CV: Loading CSV Data

0 stars1🌍 Public
AAparna Desi Reddy
Last edited Feb 28, 2026
Created on Feb 28, 2026

This example shows five circles positioned on a responsive full-screen SVG, with data loaded from a CSV file containing id and x/y coordinates. Clicking a circle toggles its fill from black to white, adding a black outline to indicate selection. The React app uses a custom hook with ResizeObserver to track container dimensions, then passes d3-selection and d3-scaleLinear to render circles with scaled positions. D3’s csv function parses the data, and the circle selection is managed through React state, triggering re-renders via useEffect.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed