Skip to main content
100%

The Margin Convention

✓ Published1🌍 Public
AAngel Lam
Last edited Mar 15, 2021
Created on Mar 15, 2021

This visualization displays the top 10 countries by projected 2020 population as horizontal bars, with country names on the vertical axis and population values on the horizontal axis. It uses React hooks to load and parse CSV data from a GitHub gist via `d3.csv`, then renders SVG rectangles scaled by `d3.scaleLinear` and positioned with `d3.scaleBand`. The chart follows the margin convention by shifting an inner group element to account for top, right, bottom, and left margins, keeping the plot area separate from the SVG’s full dimensions.

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