Skip to main content
100%

A scatter plot comparing EU fertility rate with urban population %

✓ Published1🌍 Public
YYiorgos Bagakis
Last edited Nov 12, 2022
Created on Nov 5, 2022

This scatter plot displays the relationship between EU countries’ fertility rates and their urban population percentages, with each circle labeled by country name. The visualization uses D3 v7’s `scaleLinear`, `axisLeft`, and `axisBottom` to map data from a CSV file supplied by the author via a GitHub gist. Circles are positioned using the scaled values, and country labels are placed with adjusted vertical offsets to reduce overlap. The chart is rendered as an SVG that fills the browser window, with salmon-colored text labels distinguishing them from the default circle marks.

AI-generated description

I created this scatter plot with d3 for the Episode 8 exercise with Vanilla JS.

MIT Licensed

Similar vizzes