Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

e0955a4d72274594a737b8b9b5fd4cc9

Making a Bar Chart

0 stars0🌍 Public
NNicoA
Last edited Sep 23, 2023
Created on Sep 23, 2023
Forked from D3 Starter

This bar chart displays the population of the ten most populous countries, using horizontal bars where length encodes the population value and the y-axis lists country names. The visualization is rendered as an SVG using D3 v7, with linear and band scales (`d3.scaleLinear`, `d3.scaleBand`) mapping the data. Axes are generated via `d3.axisLeft` and `d3.axisBottom`. Population data is loaded from a CSV file using `d3.csv`, with string values converted to numbers for scaling.

AI-generated description