Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
SShehroze Aamer
Last edited Apr 5, 2021
Created on Apr 5, 2021
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries using data from the 2018 United Nations World Population Prospects, with population values multiplied by 1000. It builds on a basic bar chart by customizing D3 axes: the y-axis labels are simplified by removing domain lines, the x-axis uses abbreviated tick formats (e.g., “B” for billions) via `d3.format`, and custom tick sizes create horizontal gridlines. The visualization is rendered with D3 v5 using `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, with SVG elements styled via external CSS for typography and color.

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