Activity 2_Ques 7 (Tree)
This interactive tree diagram organizes Korean dramas into hierarchical categories, beginning with a root node for “Korean dramas” that branches into action and school genres, then to specific titles like *Vagabond* or *School 2017*, and finally to leading actors. The visualization uses D3.js’s `d3.layout.tree` to compute node positions and `d3.svg.diagonal` to draw connecting links, with animated transitions of 1000 milliseconds as nodes expand from their parent’s position. The SVG rendering applies color-coded fills per hierarchy level (black root, blue categories, red titles, green actors) and relies on `node.enter()` and `transition()` for smooth appearance and movement. Data is hardcoded in the `Aboutkoreandrama` array, with a `README.md` source reference and styling from `styles.css`.
AI-generated descriptionTree map