Skip to main content
100%

Fork of UN Population Bar Chart - Margins And Axes

✓ Published1🌍 Public
Ppranav-vis
Last edited Sep 5, 2021
Created on Sep 5, 2021

This example visualizes United Nations world population data for the top five countries as a horizontal bar chart, using D3 v7 scales and React components. The SVG rendering applies explicit margins and generates both x- and y-axis tick marks with grid lines for value reference. The code uses `scaleBand` for country positioning, `scaleLinear` for population values, and `csv` to load the UN dataset, with bar heights adjusted by computed padding.

AI-generated description

Rendering CSS named colors from MDN.

MIT Licensed

Similar vizzes