Making a Bar Chart
✓ Published2🌍 Public
This bar chart shows the population of the top 10 most populous countries based on 2018 United Nations estimates, with countries on the y-axis and population values on the x-axis. It uses D3 v5 to load the CSV data, apply a linear scale for population and a band scale for countries, and render SVG rectangles with formatted tick labels via `axisBottom` and `axisLeft`. The chart is drawn inside an 800×480 SVG element with margins, and the axes are customized by removing domain lines and tick lines on the y-axis.
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.
MIT Licensed