Making a Bar Chart
✓ Published0🌍 Public
This example displays the top 10 most populous countries in 2018 using a horizontal bar chart, with population values from UN World Population Prospects 2017. The SVG visualization uses d3.csv to load data, d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom to render the axes. Bars are drawn as SVG rect elements, filled with steelblue, with population numbers scaled by 1000.
AI-generated descriptionAn is a bar chart that shows the top 10 most populous countries in the world The data was obtained from the year 2018 estimate in World Population Prospects 2017.
MIT Licensed