Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Aash301
Last edited Feb 19, 2023
Created on Feb 19, 2023

This bar chart displays the population of the top 10 most populous countries, using a horizontal layout where each bar’s length corresponds to the population value. The chart loads data from a CSV file using `d3.csv`, then applies `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, with axes rendered via `d3.axisLeft` and `d3.axisBottom`. The SVG rectangles are bound to the data and positioned with the scales, with the data sourced from the United Nations World Population Prospects report.

AI-generated description

This bar chart shows population of top 10 most populous countries. World population prospects

MIT Licensed

Similar vizzes