Customising Axes
This bar chart displays the top 10 most populous countries, using 2018 population estimates from the United Nations World Population Prospects 2017. The chart customizes its axes by removing domain lines and tick marks from the left axis, and formatting the bottom axis ticks using `format()` to abbreviate large numbers (e.g., turning "1.4G" into "1.4B") and adding a label. Grid lines are created via the `axisBottom()` tick size, while the left axis is rendered with `axisLeft()` after stripping its decorative elements. The visualization is built with d3 v5, using `csv()` to load data and `scaleLinear()` and `scaleBand()` for scaling.
AI-generated descriptionMaking a bar chart
This bar chart shoes population of the top 10 most populous countries. The data comes from the year 2018 estimate in [United Nations: World Population Prospects 2017].