Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Vviolet-chaeyoonkim
Last edited Aug 8, 2019
Created on Aug 8, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries in 2018, based on United Nations World Population Prospects data, with population values presented in billions. The example showcases D3 v5 axis customization, including a linear population scale with a formatted tick label (e.g., “1.42B” for China) and a band scale for country names. Customizations include removing axis domain lines, extending tick marks across the full chart height, and adding styled axis and title text via SVG. The code uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, `axisLeft`, and `format` to render the visualization.

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