Customizing Axes
✓ Published3🌍 Public
This bar chart displays the 2018 populations of the top 10 most populous countries, using data from World Population Prospects 2017. It uses `d3.scaleLinear` and `d3.scaleBand` for positioning, with `d3.axisLeft` and `d3.axisBottom` for axes. The x-axis tick format converts numbers to abbreviated forms like “B” via `d3.format`, and grid lines are created by setting `tickSize` to the full chart height. Countries are ordered by population with bars rendered as SVG rectangles in steelblue.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017.
MIT Licensed