Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart population

Public visualization

Viewing a saved revision (read-only)

c9621f8797b0478d962d0110a1764ce5

Bar chart population

0 stars1🌍 Public
PPeter S
Last edited Aug 14, 2019
Created on Aug 12, 2019
Forked from lets make a face

This bar chart visualization displays population data for ten countries, with horizontal bars representing each nation’s population in thousands. The chart uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` to render axes. Data is loaded asynchronously from a CSV file via `d3.csv` and converted to numbers. The SVG rendering is structured with margins, and bars are appended as `rect` elements with steelblue fill.

AI-generated description

An example showing the capabilities of VizHub.