Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Fork of Fork of Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

416eeebceed147f997419d61e6c37f2d

Fork of Fork of Fork of Fork of Fork of Making a Bar Chart

0 stars0🌍 Public
Vvipulrohit127@gmail.com
Last edited Jun 1, 2024
Created on Jun 1, 2024

This bar chart displays the 2018 population estimates for the top 10 most populous countries, sourced from the United Nations World Population Prospects. Using D3 v5, it renders an SVG with horizontal bars sorted by country name, a formatted x-axis that abbreviates large numbers (e.g., "B" for billions), and a custom title. The code applies `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, with data loaded via `d3.csv` and scales configured inside the `render` function.

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.