Skip to main content
100%

The Margin Convention

✓ Published1🌍 Public
Aazharahmad0
Last edited Mar 26, 2021
Created on Mar 26, 2021

This example displays a horizontal bar chart of the ten most populous countries in 2020, with each bar’s length proportional to its population. The visualization uses React to render SVG rectangles, while D3 v5 utilities (`d3.csv`, `d3.scaleBand`, `d3.scaleLinear`, `d3.max`) handle data loading and scaling. The data originates from a UN population CSV fetched via URL. The chart defines margins for the plotting area, translating the SVG group accordingly to position bars within the inner dimensions.

AI-generated description

A program that loads in some data about css named colors using D3 utitilities, and uses React render the data.

MIT Licensed

Similar vizzes