Skip to main content
100%

trees and networks

✓ Published0🌍 Public
Kkoppulasudhakar03@gmail.com
Last edited Nov 2, 2025
Created on Nov 2, 2025
Forked from D3 Starter

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 description
MIT Licensed

Similar vizzes