Skip to main content
100%

Reusable Treemap

✓ Published0🌍 Public
Sscheenmi@gmail.com
Last edited Dec 13, 2022
Created on Dec 11, 2022
Forked from Hello VizHub

This visualization displays the annual energy production of Courant d'Air for 2021, broken down by energy source (wind, solar, water), municipality, and enterprise. Users hover over rectangular cells to explore the hierarchical data through tooltips with production values in MWh. The treemap uses D3's `treemap` layout, `hierarchy`, and `scaleOrdinal` functions to compute and color the nested rectangles, with SVG rectangles and text labels rendered on canvas. Interactivity includes hover effects that adjust rectangle stroke and fill, plus tooltip transitions.

AI-generated description
MIT Licensed

Similar vizzes