Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JSON Fork of Ogelo - D3 Bar Chart

Public visualization

JSON Fork of Ogelo - D3 Bar Chart

0 stars0🌍 Public
AAugustine Ofoegbu
Last edited Jan 12, 2023
Created on Jan 12, 2023

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The visualization sorts countries along a vertical band scale, with horizontal bar lengths proportional to population values. It uses d3.csv to load the data and d3.scaleLinear and d3.scaleBand for scaling, with d3.axisLeft and d3.axisBottom rendering the axes. The chart is drawn as SVG rectangles with a steelblue fill, demonstrating custom axis configuration and data-driven sizing through D3 v5.

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.

Comments

Sign in to join the discussion.

MIT Licensed