Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
SSandyWu7179290504
Last edited Sep 30, 2022
Created on Sep 30, 2022
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries in 2018, using data from the United Nations World Population Prospects. The chart uses specific D3 v5 APIs: `scaleLinear` for the population axis, `scaleBand` for countries, `axisLeft` and `axisBottom` for axes, and a custom tick formatter converting values from millions to billions (e.g., `G` for `B`). The SVG rendering includes a title, an x-axis label, and gridlines created with negative tick sizes.

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