Skip to main content
Public

Share visualization

Loading preview…

Black & White Nested Circles

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportHTML, source ZIP

Black & White Nested Circles

3 stars1Public
CCurran Kelleher
Last edited Oct 9, 2025
Created on Jun 7, 2024
Forked from Portrait of React

This visualization displays the React source code as a circular treemap, with nested circles representing the file hierarchy. The circle packing layout is computed using D3's `pack` and `hierarchy` functions, and circles are colored based on file type or by depth using black and white. The code uses D3's `zoom` behavior for interactive pan and zoom, and a memoization function called `computed` optimizes rendering performance. File size influences circle opacity, while labels are added but curved labels are disabled for performance.

AI-generated description

A circle pack visualization of the React source code.

Order a canvas print of this graphic!

Data comes from Gist:File Loading Script.

Comments

Sign in to join the discussion.

MIT Licensed