🌍 Public
Viewing a saved revision (read-only)
f07c99cc00a44692a34c8dc9a14aba5c
Fork of Reusable D3 Scatter Plot
This fork of a reusable D3 scatter plot visualizes the top 100 global cities by population on the x-axis and area on the y-axis. The chart loads data from a CSV via `d3.csv`, converts fields to numbers, and renders SVG circles using `d3.scaleLinear` for both axes. It calls `d3.axisBottom` and `d3.axisLeft` for ticks, with labeled axes added as SVG text. The reusable `scatterPlot` function encapsulates scaling, axes, and circles, making the visualization configurable through a `config` object specifying value accessors and margins.
AI-generated description