Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
AAnimesh Nautiyal
Last edited Jun 19, 2021
Created on Jun 19, 2021
Forked from Making a Bar Chart

This bar chart displays the populations of the top 10 most populous countries, based on 2018 United Nations estimates. It shows how a D3 v5 bar chart can be customized, with axes and tick labels formatted using `d3.format`. The visualization uses `d3.scaleLinear` and `d3.scaleBand` to map population values and country names, while `d3.axisBottom` and `d3.axisLeft` render the axes. The data is loaded with `d3.csv` and rendered as SVG rectangles with a 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. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes