Making a Bar Chart
✓ Published0🌍 Public
This bar chart shows the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. Built with D3 v5, it renders an SVG and demonstrates customized axes: the y-axis removes its domain and tick lines, while the x-axis uses a tick formatter to abbreviate numbers (e.g., converting billions) and includes a labeled axis title. Data is loaded from a CSV and scaled using `d3.scaleLinear` and `d3.scaleBand`, with axes created via `d3.axisLeft` and `d3.axisBottom`.
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