Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making a bar chart

Public visualization

Viewing a saved revision (read-only)

02f9d55a9b714303a529244628c66a07

making a bar chart

0 stars3🌍 Public
Nnexus1058
Last edited Dec 12, 2020
Created on Dec 5, 2020
Forked from shapes with svg

This visualization displays population data for the ten most populous countries using a horizontal bar chart encoded as SVG rectangles. The chart uses D3 v6’s `csv` loader to parse data, with population values scaled linearly via `scaleLinear` and country names mapped to bands with `scaleBand`. Axes are generated using `axisLeft`, while margins define the plotting area. The bars’ widths and vertical positions are computed from the scaled domains, and the data is multiplied by 1000 to represent actual population figures.

AI-generated description