Fork of A scatter plot comparing EU fertility rate with urban population %
✓ Published0🌍 Public
HHieuVu179
Last edited Jan 3, 2023
Created on Jan 3, 2023
This scatter plot visualizes the relationship between EU countries' fertility rates and their urban population percentages, with each data point labeled by country name. The visualization uses D3 v7’s `scaleLinear`, `axisLeft`, and `axisBottom` to map the CSV data—sourced from a GitHub gist—to SVG circles and text elements. The plot fills the entire browser window, with axes positioned at the chart’s margins and salmon-colored country labels offset for readability. Data parsing converts string values to numbers for accurate scaling and positioning.
AI-generated descriptionI created this scatter plot with d3 for the Episode 8 exercise with Vanilla JS.
MIT Licensed