Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart

Public visualization

Barchart

0 stars0🌍 Public
MMari Roberts
Last edited Sep 15, 2020
Created on Sep 14, 2020
Forked from Lets make a face

A horizontal bar chart displays each country’s population as a scaled rectangle, with Russia and India appearing largest. The data comes from a CSV file, loaded via `d3.csv`, and values are multiplied by 1000 before rendering. The SVG visualization uses `scaleLinear` for the x-axis width, `scaleBand` for the y-axis country ordering, and `selectAll` with `enter().append` to create the rectangles. Styling is minimal, with the chart filling the viewport and bars drawn in the default black color.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed