Skip to main content
100%

Bar chart

✓ Published1🌍 Public
Kkavi-kumaran
Last edited Jan 1, 2020
Created on Dec 31, 2019

This bar chart displays the populations of seven global regions using a horizontal layout, with the population values loaded from a CSV file and formatted in billions. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map data to SVG rectangles, while `axisLeft` and `axisBottom` generate the chart’s axes. The code also demonstrates DOM manipulation through D3 selections, appending elements, and applying attributes. A title and axis label are added via SVG text elements, and the styling is handled through an external CSS file.

AI-generated description

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

MIT Licensed

Similar vizzes