Skip to main content
100%

Fork of Customizing Axes

✓ Published1🌍 Public
UUpamanyu-ml
Last edited Feb 6, 2021
Created on Feb 6, 2021
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using 2018 population estimates from United Nations World Population Prospects, loaded via `d3.csv`. It shows each country as a horizontal bar with a linear population scale and a banded country scale, demonstrating axis customization through `d3.axisLeft` and `d3.axisBottom` with tick formatting that abbreviates large numbers. The chart uses `d3.scaleLinear` and `d3.scaleBand` for scales, removes unnecessary axis domains and lines, and adds styled labels and a title via SVG text elements. The population values are multiplied by 1000 after parsing.

AI-generated description

This 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. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes