Skip to main content
100%

plotting tree

✓ Published0🌍 Public
SSubhas Ramdass
Last edited Jan 11, 2025
Created on Jan 11, 2025

This visualization displays 2011 EV stock values as a hierarchical tree chart, with countries (China, India, UK, USA) branching into vehicle categories (buses, cars) and then into BEV and PHEV types with labeled numeric values. The code uses d3.hierarchy and d3.tree to compute the layout, then draws cubic Bezier curves as links. Node and link colors are encoded directly in the JSON data structure, with SVG rendering and a linear-gradient CSS background.

AI-generated description
MIT Licensed

Similar vizzes