Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making a barchart

Public visualization

Viewing a saved revision (read-only)

8a59f9ee290749a2af7d0f17db5af9be

Fork of Making a barchart

0 stars0🌍 Public
SSampras Dsouza
Last edited Jun 22, 2022
Created on Jun 22, 2022
Forked from Making a barchart

This horizontal bar chart displays the populations of the ten most populous countries, scaled to actual values in thousands. The visualization reads population data from a CSV file using `d3.csv`, then renders SVG rectangles with scales from `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Axis generators `axisLeft` and `axisBottom` label the countries and population counts. The chart uses a steelblue fill for the bars and is built with D3 v5, rendered as an SVG element.

AI-generated description