Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

c890da14ce494806ae2d0d6a8c51f653

Making a Bar Chart

0 stars1🌍 Public
Xxsg13
Last edited Nov 28, 2020
Created on Nov 27, 2020

A horizontal bar chart ranks countries by population, using D3 v6 to load data from a CSV and render SVG rectangles. The code scales population with `scaleLinear` and country names with `scaleBand`, then draws axes via `axisLeft` and `axisBottom`. Bars are appended as `rect` elements, with the data source parsed from the `data.csv` file.

AI-generated description