trees and networks
✓ Published0🌍 Public
A hierarchical tree visualization displays 2020 agricultural metrics for ten countries, with each country node branching into four leaf nodes showing agricultural land percentage, crop yield, fertilizer use, and agriculture GDP share. The root, country, and metric nodes use different shapes and colors, with country-specific hues propagated to their child metrics for visual grouping. Using d3.hierarchy and d3.tree, the layout positions nodes, while d3.linkHorizontal draws the connecting paths. Data comes from the agriculture_farming_by_country.csv file, rendered as SVG elements with colors assigned from a predefined palette.
AI-generated descriptionMIT Licensed