Skip to main content
100%

Bar Charts

✓ Published0🌍 Public
Eexcalibur1987
Last edited Sep 23, 2019
Created on Sep 23, 2019
Forked from Bar Charts

This bar chart visualizes the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. The chart displays population counts per country with a horizontal bar layout, using a linear scale for the x-axis and a band scale for the y-axis to position country names. The visualization is rendered as SVG using D3 v5, with custom axis formatting that abbreviates population numbers and uses scaleLinear, scaleBand, axisLeft, and axisBottom APIs. The code also demonstrates axis customization by removing domain lines and adding axis labels and a title.

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