Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart ex!

Public visualization

Viewing a saved revision (read-only)

5e30a9a7edd545fe9ac30b87ee28297d

Bar chart ex!

0 stars0🌍 Public
DDimitarDraganov
Last edited Jun 20, 2020
Created on Jun 17, 2020

A bar chart displays population estimates for nine countries, with horizontal bars sorted by country name along the y-axis and population values on the x-axis. The visualization uses D3 v5 modules including `csv` for loading data, `scaleLinear` and `scaleBand` for scales, and `axisLeft`/`axisBottom` for axes. Bars are rendered as SVG `rect` elements with widths proportional to population, which is converted from thousands to absolute numbers. The chart updates once after the CSV data is parsed and processed.

AI-generated description

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