Skip to main content
Public

Share visualization

Loading preview…

Family Tree ICE 8 d3.js

vizhub.com

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

Before sharing, review the publishing checklist.

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 & exportPNG, HTML, source ZIP

Family Tree ICE 8 d3.js

0
RRahulChaitu999
Last edited Jul 9, 2022
Created on Jul 9, 2022

A family tree visualization maps hierarchical relationships using D3.js v5. The SVG layout positions colored circles for family members—red for root, green for intermediate, blue for leaf nodes—with connecting cubic Bézier curves drawn as paths. Using `d3.stratify()` to structure the data and `d3.tree()` for layout, the code renders descendant positions and labels. Text labels appear next to each node, shifted 15 pixels right and 5 pixels down. The tree spans a fixed 1060×600 pixel SVG canvas with data hardcoded as an array of parent-child pairs.

AI-generated description

Making a basic emoji using D3.js & SVG(Scalable Vector Graphics)

Comments

Sign in to join the discussion.

MIT Licensed