π Public
Fork of Treemap
This fork of a D3 treemap visualizes hierarchical data from a CSV file, showing the production values of countries grouped by continent as nested rectangles. Each rectangle uses color to represent its leaf node, and hovering highlights it while a title tooltip displays the country name and production value. The code uses `d3.csv`, `d3.stratify`, and `d3.treemap` to compute layout, then renders SVG rectangles and text labels with D3 v6.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.