Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
JJenniferFernald
Last edited May 14, 2019
Created on May 14, 2019

A horizontal bar chart ranks the ten most populous countries, with populations derived from the 2018 United Nations World Population Prospects estimate. The chart uses an SVG rendering with d3.scaleLinear for the quantitative x-axis and d3.scaleBand for the categorical y-axis, populated via d3.csv. Axes are generated with d3.axisLeft and d3.axisBottom, while d3.max computes the domain. The data file is loaded asynchronously, with population values converted from thousands to full numbers before rendering.

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