Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
BBossmaen
Last edited Mar 21, 2019
Created on Mar 20, 2019
Forked from Making a Bar Chart

A bar chart displays the population of ten countries using 2018 data from the United Nations World Population Prospects. The visualization loads a CSV file with population values and maps them to horizontal bars, with country names on the y-axis and population counts on the x-axis. Using D3 v5, the code employs `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the SVG chart, while `csv` loads the data and `max` determines the scale domain. The bars are rendered as SVG rectangles with steelblue fill.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.

MIT Licensed

Similar vizzes