🌍 Public
Viewing a saved revision (read-only)
7cf1933a10fb4c16a4f2ab4b1187af36
Fork of CV: Loading CSV Data
This example demonstrates an interactive scatter plot of five data points loaded from a CSV file, rendered as circles scaled to the container size. Clicking a circle selects it, turning its fill from black to white with a black stroke. The code uses React with hooks for state management and container dimensions, while D3 v7 handles CSV parsing via `d3.csv` and SVG rendering through `select`, `join`, and `scaleLinear` for positional mapping.
AI-generated description