Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
Aadelgrosso
Last edited Aug 18, 2021
Created on Aug 18, 2021
Forked from Customizing Axes

This bar chart visualizes the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. It shows population values as horizontal bars ordered by country, with formatted axis labels (e.g., “1.41B”) and gridlines. The chart uses d3.scaleLinear and d3.scaleBand for axes, d3.axisBottom and d3.axisLeft to render ticks, and d3.format for tick labels. Data is loaded from a CSV file via d3.csv, and the chart is rendered as SVG.

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