Fork of Fork of Circles with D3
✓ Published0🌍 Public
This example visualizes the relationship between state-level data from 2020 and 2024 using a reusable scatter plot built with D3 v6. It shows how individual data points map from the x-axis (2020 values) to the y-axis (2024 values) through a clean SVG rendering. The code employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` from D3 to compute scales and draw axes, while circles are joined to data via `selection.selectAll('circle').data().join()`. The underlying dataset is loaded as CSV from a remote URL, and the chart adapts to the viewport size.
AI-generated descriptionMIT Licensed