Making a Bar Chart
✓ Published0🌍 Public
AAWkmonroe
Last edited Oct 29, 2020
Created on Oct 29, 2020
This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The visualization emphasizes customizable axes, with horizontal bars ordered by country name and a population axis formatted in billions. Built with D3 v5, the code uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart, while loading data from a CSV file. The SVG rendering includes a custom tick format that converts large numbers to abbreviated labels.
AI-generated descriptionThis 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. It also demonstrates customization of D3 axes.
MIT Licensed