Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
DDaniel Piqué
Last edited Nov 24, 2018
Created on Nov 23, 2018

A horizontal bar chart displays the 2018 population estimates for the ten most populous countries from the United Nations World Population Prospects. The visualization uses d3.csv to load the data, then constructs the chart from an SVG with d3.scaleLinear for the population axis and d3.scaleBand for country categories. Axes are rendered via d3.axisLeft and d3.axisBottom, while rectangular bars are appended through a data join with fill styling from the stylesheet.

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