Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Make a Bar Chart

Public visualization

Viewing a saved revision (read-only)

e7fd6bf32dfe491eb07e93a598a4da2e

Make a Bar Chart

0 stars0🌍 Public
TTheRoadSign
Last edited Nov 25, 2019
Created on Nov 25, 2019
Forked from Make a Bar Chart

This bar chart displays the populations of the world’s most populous countries, using a horizontal bar for each nation. It reads population data from a CSV file and renders the visualization as SVG. The code builds the chart with D3.js v5, using `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft`/`axisBottom` to draw the axes. The bars themselves are appended as `rect` elements, with a fixed steelblue fill.

AI-generated description

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