Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Tree

Public visualization

Viewing a saved revision (read-only)

69fa12c13171409a997118971a18d6be

Tree

0 stars1🌍 Public
Uusamazaibabbasi
Last edited Jan 29, 2021
Created on Jan 29, 2021

This example demonstrates a static tree diagram rendered as an SVG, showing a single rectangular node labeled “Value Share” positioned within a 960×500 canvas. The code uses D3.js v5 for DOM manipulation, selecting the SVG element and appending a group with a styled rectangle and text element. It relies on basic D3 selection and attribute methods, such as `d3.select` and `.append`, without loading external data or implementing interactive behavior.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.