Making a bar chart
✓ Published1🌍 Public
A horizontal bar chart displays the populations of the ten most populous countries using 2018 estimates from the World Population Prospects 2017 dataset. The chart uses D3 v5’s `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data and render SVG axes and rectangles. Population values are converted from thousands and scaled to bar widths, with country names positioned on the y-axis.
AI-generated descriptionThis bar chart shows population of the top 10 most populous contries. The data comes form the year 2018 estimate in World Population Prospects 2017.
MIT Licensed