Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
JJames Song
Last edited Jul 18, 2020
Created on Jul 18, 2020
Forked from D3.js Starter

This bar chart displays the populations of several countries using a horizontal layout, with the United Nations population data loaded from a CSV file. The visualization uses D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis, rendering SVG rectangles and axes via `axisBottom` and `axisLeft`. Population values are formatted with `format('.3s')` for compact labels, and the chart is drawn within an SVG container using margins and a translated group element.

AI-generated description

This bar chart shows population of the tp 10 ost populous countries

https://esa.un.org/unpd/wpp/Download/Standard/Population/

MIT Licensed

Similar vizzes