Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Hierarchies - eg2

Public visualization

Fork of D3 Hierarchies - eg2

0 stars1🌍 Public
SSubhendu Karmakar
Last edited Mar 13, 2024
Created on Mar 13, 2024
Forked from D3 Hierarchies

This example shows a hierarchical tree visualization of movie data, grouped by distributor and genre, with the worldwide gross revenue aggregated for each group. The root hierarchy is built using `d3.rollup` and `d3.hierarchy`, then laid out with the `d3.tree` layout. Nodes are drawn as circles, connected by lines, with labels above and leaf counts below. The code uses D3 v7 APIs including `d3.sum`, `d3.select`, and `.join` to render the SVG elements.

AI-generated description

D3 Hierarchies

Comments

Sign in to join the discussion.

MIT Licensed