Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Eemntd
Last edited Oct 16, 2019
Created on Oct 9, 2019
Forked from Making a Bar Chart

This example shows a horizontal bar chart ranking the populations of the ten most populous countries. It uses D3.js v5's `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map data from a CSV file to SVG rectangles. The chart displays population values on the x-axis and country names on the y-axis, with a green fill applied to all bars via CSS.

AI-generated description

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

MIT Licensed

Similar vizzes