Skip to main content
Public

Share visualization

Loading preview…

Tree

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

Tree

0
Jjammigumpula.priyanka193@gmail.com
Last edited Apr 1, 2024
Created on Apr 1, 2024

This example visualizes the Titanic passenger dataset as both a hierarchical tree and a force-directed network graph. The tree shows survival counts (survived vs. not survived) using d3.tree and d3.hierarchy, while the network graph uses d3.forceSimulation with d3.forceLink, d3.forceManyBody, and d3.forceCenter to position passengers. Nodes are colored by gender (blue for male, pink for female), and links connect passengers sharing the same gender, age, and passenger class. The SVG rendering, compiled from CSV data loaded via d3.csv, displays slim lightgrey links and steelblue circle nodes in the tree.

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