Skip to main content
100%

Fork of Making a barchart

✓ Published0🌍 Public
MMartin Casey
Last edited Feb 22, 2021
Created on Feb 22, 2021
Forked from Making a barchart

This example demonstrates a horizontal bar chart ranking the populations of ten countries. It uses D3 v5’s `csv` to load data from a CSV file, then employs `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to position bars and axes within an SVG. The chart is rendered by appending `rect` elements to a group, with a steelblue fill and population values scaled by 1000.

AI-generated description

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

MIT Licensed

Similar vizzes