Skip to main content
100%

Fork of Fork of Fork of Customizing Axes

✓ Published0🌍 Public
Ddankvader1
Last edited Jul 3, 2022
Created on Jul 3, 2022

This bar chart visualizes the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. It shows how D3 axes can be customized, including removing domain lines, adjusting tick formats, and adding axis labels. The visualization uses d3.scaleLinear and d3.scaleBand to map population and country names, with d3.axisBottom and d3.axisLeft for the axes. Data is loaded via d3.csv, and tick labels are formatted using d3.format with abbreviations converted from billions to their original scale.

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