Skip to main content
100%

2nd task

✓ Published0🌍 Public
Nnitishsurneni@gmail.com
Last edited Apr 26, 2025
Created on Apr 26, 2025
Forked from Project

This treemap visualizes the distribution of billionaire wealth across twelve industries, using a color-coded hierarchy where rectangle size corresponds to total industry wealth. Built with D3 v7, the code uses `d3.hierarchy` and `d3.treemap` to compute spatial layout, then renders each leaf as an SVG `rect` with a text label. The visualization includes interactive tooltips that display the industry name and total wealth on hover, with smooth opacity transitions. The color scheme uses `d3.schemeSet3` for categorical distinction.

AI-generated description
MIT Licensed

Similar vizzes