Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
MMbabazi Elizabeth Shirley
Last edited Jun 16, 2023
Created on Jun 16, 2023

This visualization maps water quality measurements from a CSV file across villages in Uganda, rendering turbidity data as colored rectangles. The code uses D3 v5’s `select`, `csv`, `scaleLinear`, and `max` functions to load the data, compute a domain based on maximum turbidity, and append SVG rectangles with fixed dimensions. A smiley face design with animated eyebrows serves as the visual framework, while the data-driven rectangles are positioned without explicit coordinates, leaving placement to the default SVG layout. The page includes a linked tutorial video and uses a minimal SVG container with CSS styling.

AI-generated description

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

MIT Licensed

Similar vizzes