Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Did on my own(bar graph)

Public visualization

Viewing a saved revision (read-only)

2bf877d018e64730b967c2fe427e17e0

Did on my own(bar graph)

0 stars1🌍 Public
LLonwabo11
Last edited May 6, 2019
Created on May 6, 2019
Forked from Scatter plot

This bar chart displays population estimates for ten countries, using horizontal bars sorted by country name. The visualization loads data from a CSV file and renders it as SVG rectangles. The code uses D3 v5 functions including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map population values to bar widths and country names to vertical positions. Population numbers are multiplied by 1000 during data preprocessing to match the source values.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.