Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes