Skip to main content
100%

ice 8

✓ Published0🌍 Public
Vvemuri.vaishnavi27@gmail.com
Last edited Apr 7, 2025
Created on Apr 7, 2025

This visualization presents a spacious tree diagram comparing production and consumption values for wheat, rice, barley, and cotton across the USA, Mexico, and India. The hierarchical structure uses a d3.tree layout with custom separation logic to increase spacing between leaf nodes. Nodes are rendered as rounded rectangles with SVG text labels, while straight brown links connect parent-child relationships. The code builds the tree from flat data using a Map, then applies d3.hierarchy and d3.tree to position elements within an SVG viewBox of 1800 by 600 pixels.

AI-generated description
MIT Licensed

Similar vizzes