Skip to main content
100%

Fork of Customizing Axes

✓ Published1🌍 Public
JJadenzzz
Last edited Jan 12, 2022
Created on Dec 29, 2021
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 2017. It shows how to customize chart axes in D3 v5, using `scaleLinear` for population and `scaleBand` for country names. The visualization uses `axisBottom` and `axisLeft` with custom tick formatting that converts values from billions to trillions, and `axisBottom` includes grid lines extending across the chart. The SVG rendering includes styled tick labels and a title.

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