Skip to main content
Public

Share visualization

Loading preview…

bhargava- Family tree

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

bhargava- Family tree

0 stars0Public
Bbhargavarathod
Last edited Apr 5, 2022
Created on Apr 4, 2022
Forked from HTML Starter

This family tree visualization uses a node-link diagram to display three generations of a family, with circles representing individuals and curved paths connecting parents to children. The tree layout is computed using the `d3.stratify()` and `d3.tree()` APIs from D3 v5, with circle colors determined by each node's depth in the hierarchy (red for roots, blue for middle generation, green for leaves). The data is hardcoded in the script, and the SVG rendering includes text labels for each person's name.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed