Fork of Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the 2018 population estimates for the top 10 most populous countries, sourced from the United Nations World Population Prospects 2017. The visualization uses d3.scaleBand and d3.scaleLinear to map countries and their populations to SVG rectangles, with d3.axisLeft and d3.axisBottom providing labeled axes. The code also demonstrates D3 axis customization through formatting functions, rendering the chart entirely as SVG within a 960×500 viewport.
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