Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

4c1ad11174b948c9a249d86d361347a7

Making a Bar Chart

0 stars1🌍 Public
Rrebeccayc
Last edited Jan 16, 2020
Created on Jan 16, 2020

A horizontal bar chart displays population data for the ten most populous countries, with each bar’s length proportional to population in thousands. Built with D3 v5 and SVG, the visualization loads data from a CSV file via `d3.csv`, then uses `scaleLinear` for the x-axis and `scaleBand` with padding for the y-axis categories. Axes are rendered using `axisLeft` and `axisBottom`, while the margin convention positions the chart within the 960×500 viewport.

AI-generated description