Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Barchart

Public visualization

Viewing a saved revision (read-only)

a87dc4786e7a4dbcbadda8052dbd56eb

Making a Barchart

0 stars0🌍 Public
Mmuhammadumair41
Last edited Jun 19, 2020
Created on Jun 19, 2020
Forked from Making a Barchart

This bar chart displays the population of the top 10 most populous countries in 2020, based on UN World Population Prospects data. The visualization uses d3.scaleLinear for the x-axis mapping population values and d3.scaleBand for the y-axis country categories. It renders SVG rectangles with a steelblue fill, loads data via d3.csv, and employs d3.axisLeft and d3.axisBottom for the axes. The code applies margins and transforms to position the chart within an SVG canvas.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2020 in World Population Prospects 2020 according to the UN.