Skip to main content
100%

The Margin Convention

✓ Published1🌍 Public
RRMartins11
Last edited May 4, 2021
Created on May 4, 2021

This visualization displays a horizontal bar chart of the top 10 most populous countries in 2020, using a bar for each nation’s population. Built with React and D3 v6, it loads data from a CSV file via `d3.csv`, then uses `scaleBand` and `scaleLinear` to map countries and population counts to SVG rectangles within a specified margin. The code highlights the "margin convention" by offsetting the chart’s group with `translate`, ensuring axes align to the drawing area’s inner bounds.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst.

MIT Licensed

Similar vizzes