Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

The Margin Convention

Public visualization

The Margin Convention

0 stars1🌍 Public
TThomas Cormican
Last edited Jan 8, 2022
Created on Jan 8, 2022

A bar chart displays population data for ten countries, encoded as horizontal rectangles whose widths scale with each country’s 2020 population. The visualization implements the margin convention by using a translation to offset an inner group from the SVG’s edges. React manages the rendering state, loading the CSV data via `d3.csv` and applying `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The chart demonstrates how to structure SVG output using React and D3 v7.

AI-generated description

A program that loads in some data about CSS named colors.

Comments

Sign in to join the discussion.

MIT Licensed