Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
Aall-over-yet
Last edited Dec 27, 2020
Created on Dec 27, 2020
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries based on 2018 estimates from the United Nations World Population Prospects, with population values multiplied by 1,000. The visualization demonstrates customized D3 axes in an SVG rendering, using `d3.scaleLinear` for population and `d3.scaleBand` for countries. The code employs `d3.axisBottom` with tick formatting that converts large numbers (e.g., G to B) and `d3.axisLeft` with grid lines, while styling axis labels, tick lines, and title text through CSS.

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