D3 Course Code Along - Colour and Size Legend
✓ Published0🌍 Public
Rrenenadorp
Last edited Jul 2, 2020
Created on Jun 30, 2020
This visualization demonstrates two interactive legends built with D3 v5: a color legend mapping categorical fruit names to distinct hues, and a size legend using a square-root scale to represent numeric values. The SVG rendering animates circle radii and colors using `transition().duration(1000)`, while legends update dynamically through enter/merge/exit selections. Code is organized as reusable modules (`colorLegend.js`, `sizeLegend.js`) invoked via `selection.call()`, with data sourced from CSV files.
AI-generated descriptionMIT Licensed