Skip to main content
100%

Bar chart ex!

✓ Published0🌍 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.

MIT Licensed

Similar vizzes