Skip to main content
100%

Ep22 Margin Convention

✓ Published1🌍 Public
GGordon Yang
Last edited Apr 8, 2021
Created on Apr 8, 2021

A horizontal bar chart displays the top 10 countries by 2020 UN population estimates, using teal bars on a white background. The React app loads CSV data from a GitHub gist, parses the population column, and sorts by descending value. D3’s `scaleBand` positions the country categories on the y-axis, while `scaleLinear` maps population values to bar widths. SVG tick marks and labels are generated via `xScale.ticks()`, with axis lines and country names positioned relative to the fixed margins.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes