Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Test svg

Public visualization

Test svg

0 stars1🌍 Public
EErik Rudhe
Last edited Mar 31, 2020
Created on Mar 31, 2020
Forked from Test svg

This bar chart displays the population of the ten most populous countries, with horizontal bars sorted by country name. The visualization uses D3 v5 to load data from a CSV file, scale the population values linearly, and render the chart as an SVG. The code applies `scaleBand` for the categorical country axis and `scaleLinear` for the population axis, while `axisLeft` and `axisBottom` generate the tick marks and labels. Bars are drawn as SVG rectangles with a steelblue fill, and the chart includes margins and a rescaled population axis.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed