The margin convention
✓ Published1🌍 Public
DDeborah Ong
Last edited Apr 3, 2021
Created on Apr 3, 2021
Forked from Fork of Fork of Rendering Data with React and D3
A horizontal bar chart displays the top ten countries by 2020 population, ranked by name along the y-axis and population count along the x-axis. The example demonstrates the margin convention by defining equal twenty-pixel margins on all sides and translating a group element accordingly. React manages the component state, while D3 utilities load the CSV data and construct the band and linear scales. The SVG renders each bar as a rect element sized through the scales.
AI-generated descriptionA 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