Skip to main content
100%

Make a Bar Chart

✓ Published1🌍 Public
TTheRoadSign
Last edited Nov 25, 2019
Created on Nov 25, 2019

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.

MIT Licensed

Similar vizzes