JavaScript is required

relation-graph Examples

Welcome to the relation-graph example hub.

This is not a small set of isolated snippets. It is a structured, production-oriented catalog that shows how relation-graph scales from simple viewers to advanced interactive editors.

Across this catalog, you can explore 200+ professional examples organized into clear thematic groups. Some examples appear in multiple groups on purpose, so you can discover the same implementation from different problem angles: rendering, layout, interaction, editing, data flow, styling, export, and API control.

What You Can Learn Here

The examples are grouped to help you move from fundamentals to advanced system design:

  • Node + Line: Build visual language for nodes and connectors with slots, CSS skinning, labels, arrows, animation, and custom edge rendering.
  • Layouts: Compare tree, center, force, folder, and mixed layouts; tune spacing and routing; integrate external solvers like Dagre, Graphology ForceAtlas2, and D3 hierarchy layouts.
  • Use Cases: Study realistic graph products such as corporate structures, investment exploration, industry chains, topology monitoring, and scenario-specific dashboards.
  • Graphic Editing Suite: Move beyond read-only viewers into full editing workflows: create, connect, modify, align, resize, undo/redo, and advanced authoring patterns.
  • Element Lines + UI Slots: Connect graph logic with regular HTML elements and map overlays, and compose custom toolbars and cross-layer UI.
  • Events, Interactions, and Runtime Control: Implement selection, hover/click highlighting, context menus, focus navigation, expand/collapse playback, and viewport operations.
  • Data Manipulation + Unconventional Data: Append in stages, lazy-load branches, reapply external data models, and handle disconnected or non-standard structures.
  • Style, Animation, Effects + Image Export: Polish UX with themes and motion, then export full graphs, visible regions, and Base64 images with controlled output scope.
  • Instance API: Learn provider-scoped instance control and framework-level extension patterns with custom graph core orchestration.

No matter where you begin, each example is a reusable implementation pattern, not just a visual demo. Pick one that matches your current challenge, run it, inspect the configuration and component structure, then adapt the pattern into your own graph workflow.

Node
Basic Custom Node and Minimap
Basic Custom Node and Minimap
Node Styling Techniques
Node Styling Techniques
Switchable Node Slot Templates
Switchable Node Slot Templates
Slot-Based Node Content and Styles
Slot-Based Node Content and Styles
Node CSS Skin and Checked State
Node CSS Skin and Checked State
Force Layout Icon Button Nodes
Force Layout Icon Button Nodes
Glowing Icon Node Tree Style
Glowing Icon Node Tree Style
Gradient Line Graph Editor
Gradient Line Graph Editor Pro
Graph Hand-Drawn Style Switcher
Graph Hand-Drawn Style Switcher
AI Model Workflow Graph
AI Model Workflow Graph Pro
Line
Line Shapes, Junctions, and Custom Arrows
Line Shapes, Junctions, and Custom Arrows
Line Shape, Junctions, and Label Placement
Line Shape, Junctions, and Label Placement
Line Endpoint Gap Control
Line Endpoint Gap Control Pro
Multi-Line Gap Control
Multi-Line Gap Control
Built-In Line Dash and Animation
Built-In Line Dash and Animation
Batch Switch CSS Line Styles
Batch Switch CSS Line Styles
Graph Line Animation Presets
Graph Line Animation Presets
Checked Line Effect Presets
Checked Line Effect Presets
Animated Shortest Path Highlighting
Animated Shortest Path Highlighting
Custom Line Arrow Presets
Custom Line Arrow Presets
Graph CSS Theme Switcher
Graph CSS Theme Switcher Pro
Graph Theme and Layout Preset Switcher
Graph Theme and Layout Preset Switcher Team
Built-in Line Rendering Options
Built-in Line Rendering Options
Gradient Line Graph Editor
Gradient Line Graph Editor Pro
Custom Line Slot Rendering
Custom Line Slot Rendering
Animated Line Slot with Detail Link
Animated Line Slot with Detail Link
Animated Route Progress Line Slot
Animated Route Progress Line Slot
Simulated data flow path
Simulated data flow path
Line-Following HTML DIV Overlay
Line-Following HTML DIV Overlay Pro
Customize Line Text Position
Customize Line Text Position Pro
Curved Line Path Text Controls
Curved Line Path Text Controls Pro
Orthogonal Line Label Controls
Orthogonal Line Label Controls Pro
Pattern-Switchable Tape Lines
Pattern-Switchable Tape Lines Pro
Patterned Tape Line Rendering
Patterned Tape Line Rendering Pro
Google Income Statement Ribbon Graph Tutorial
Google Income Statement Ribbon Graph Tutorial
Orthogonal Line Label Styling
Orthogonal Line Label Styling Pro
Layouts
Tree Layout Orientation Switcher
Tree Layout Orientation Switcher
Tree Layout Level and Node Spacing
Tree Layout Level and Node Spacing
Bidirectional Tree Line Label Tuning
Bidirectional Tree Line Label Tuning
Bidirectional Tree Line Direction FAQ
Bidirectional Tree Line Direction FAQ
Tree Layout and Line Options
Tree Layout and Line Options Pro
Center Layout Style Controls
Center Layout Style Controls
Center Layout Spacing Controls
Center Layout Spacing Controls
Force Layout Live Parameter Tuning
Force Layout Live Parameter Tuning
Force Layout Runtime Parameter Controls
Force Layout Runtime Parameter Controls
Force Layout Performance Mode Stress Lab
Force Layout Performance Mode Stress Lab Team
Tree - Performance Mode Test
Tree - Performance Mode Test Team
Force Layout Node Weight And Line Elasticity
Force Layout Node Weight And Line Elasticity Pro
Custom Force Layout Color Clustering
Custom Force Layout Color Clustering Pro
Custom Force Layout on Concentric Rings
Custom Force Layout on Concentric Rings Pro
Force Clustering with Controlled Anchor Motion
Force Clustering with Controlled Anchor Motion Pro
Folder Layout with Line Offset Control
Folder Layout with Line Offset Control
Organization Tree Folder Layout
Organization Tree Folder Layout Pro
Enterprise Quadrant Fixed Layout
Enterprise Quadrant Fixed Layout
Center and Tree Layout Composition
Center and Tree Layout Composition Team
Custom Mixed Subgraph Layouts
Custom Mixed Subgraph Layouts Team
Sequential Tree Group Layout
Sequential Tree Group Layout Team
Connected Subnetwork Layout Switcher
Connected Subnetwork Layout Switcher Pro
Multi-Group Graph Layout and Style Editor
Multi-Group Graph Layout and Style Editor Team
Industrial Chain Card-Anchored Mixed Layout
Industrial Chain Card-Anchored Mixed Layout Team
Industry Chain Group Layout Editor
Industry Chain Group Layout Editor Team
Smart Tree Layout
Smart Tree Layout Team
IO Tree Layout Orientation and Link Routing
IO Tree Layout Orientation and Link Routing Team
Dagre Layout Integration and Line Label Positioning
Dagre Layout Integration and Line Label Positioning Pro
Dagre Position Layout Runtime Controls
Dagre Position Layout Runtime Controls Pro
Use Graphology ForceAtlas2 Layout
Use Graphology ForceAtlas2 Layout Pro
D3 Treemap and Pack Layout Integration
D3 Treemap and Pack Layout Integration Pro
System Architecture Diagram with Custom Layout
System Architecture Diagram with Custom Layout
Custom Node Enterprise Service Promo Card
Custom Node Enterprise Service Promo Card Team
Use Cases
Bidirectional Tree Layout
Bidirectional Tree Layout
Google Income Statement Ribbon Infographic
Google Income Statement Ribbon Infographic
Google Income Statement Ribbon Graph Tutorial
Google Income Statement Ribbon Graph Tutorial
Industry Chain Hierarchy Map
Industry Chain Hierarchy Map
Corporate Equity Structure Diagram
Corporate Equity Structure Diagram Pro
Investment and Shareholder Relationship Explorer
Investment and Shareholder Relationship Explorer Pro
Show All Preloaded Branch Nodes
Show All Preloaded Branch Nodes Pro
Lazy-Load Paginated Branch Nodes
Lazy-Load Paginated Branch Nodes Pro
Trade Partner Relationship Explorer
Trade Partner Relationship Explorer
AI Model Workflow Graph
AI Model Workflow Graph Pro
Database Foreign Key Diagram
Database Foreign Key Diagram
Class Members and Interest Group Relations
Class Members and Interest Group Relations Pro
Map-Linked Warehouse and Product Overview
Map-Linked Warehouse and Product Overview Pro
Business Unit Organizational Chart
Business Unit Organizational Chart Pro
Corporate Group Relationship Map
Corporate Group Relationship Map
Corporate Group Relationship Tree
Corporate Group Relationship Tree
Enterprise Quadrant Fixed Layout
Enterprise Quadrant Fixed Layout
Network Topology Monitor
Network Topology Monitor
Infrastructure Topology Dashboard
Infrastructure Topology Dashboard
Cloud Infrastructure Topology via Canvas Slot
Cloud Infrastructure Topology via Canvas Slot
System Architecture Diagram with Custom Layout
System Architecture Diagram with Custom Layout
System Architecture Diagram Editor
System Architecture Diagram Editor
Force Classifier
Force Classifier
Attribute-Grouped Force Clustering
Attribute-Grouped Force Clustering
Character Relationship Graph Filters
Character Relationship Graph Filters Pro
Character Relationship Graph Operations
Character Relationship Graph Operations Pro
Industrial Chain Card-Anchored Mixed Layout
Industrial Chain Card-Anchored Mixed Layout Team
Shortest Path Query
Shortest Path Query Pro
Graph Editor with Context Menu and Local Save
Graph Editor with Context Menu and Local Save Team
PCB Component Wiring Editor
PCB Component Wiring Editor Team
Zodiac Compatibility Matcher
Zodiac Compatibility Matcher Pro
Toys - Clock
Toys - Clock Pro
Timer-Driven Force Layout Parameter Cycling
Timer-Driven Force Layout Parameter Cycling Pro
Graphic editing suite
Node Resize Controls and Styles
Node Resize Controls and Styles
Double click to edit node text
Double click to edit node text
Preset Toolbar Node and Line Creation
Preset Toolbar Node and Line Creation Pro
Batch Edit Selected Nodes
Batch Edit Selected Nodes Pro
Around-Node Quick Actions
Around-Node Quick Actions Pro
Selected Node Directional Line Creation
Selected Node Directional Line Creation Pro
Selected Node Line Creation With Target Endpoint Selection
Selected Node Line Creation With Target Endpoint Selection Pro
Line Endpoint Editing
Line Endpoint Editing Pro
Line Label and Endpoint Editing
Line Label and Endpoint Editing Pro
Interactive Line Path Editing
Interactive Line Path Editing Pro
Custom Selected Line Toolbar
Custom Selected Line Toolbar Pro
Node Drag Alignment Guides
Node Drag Alignment Guides Pro
Canvas Coordinate Ruler
Canvas Coordinate Ruler Pro
Adjustable Graph Minimap
Adjustable Graph Minimap Pro
Node Drag Collision and Drop Rules
Node Drag Collision and Drop Rules Pro
Partial Node Drag Handles
Partial Node Drag Handles Pro
Graph Undo/Redo History
Graph Undo/Redo History Pro
Freehand Strokes to Graph Nodes
Freehand Strokes to Graph Nodes Pro
Gradient Line Graph Editor
Gradient Line Graph Editor Pro
Metric Rollup Graph Editor
Metric Rollup Graph Editor
System Architecture Diagram Editor
System Architecture Diagram Editor
PCB Component Wiring Editor
PCB Component Wiring Editor Team
Multi-Group Graph Layout and Style Editor
Multi-Group Graph Layout and Style Editor Team
Diagram Editor Workbench
Diagram Editor Workbench Team
Element Lines
Connect Targets Across Canvas Elements, Nodes, and Grid Items
Connect Targets Across Canvas Elements, Nodes, and Grid Items
Element Lines
Element Lines
Compare Element-to-Node and Element-to-Element Links
Compare Element-to-Node and Element-to-Element Links
Connect List Items to Location Nodes
Connect List Items to Location Nodes
Connect Lines to Node Content Targets
Connect Lines to Node Content Targets
Jin Yong Martial Sect Map Browser
Jin Yong Martial Sect Map Browser
World Map Graph Overlay with Snapshots
World Map Graph Overlay with Snapshots Pro
US Map Graph Overlay and Snapshots
US Map Graph Overlay and Snapshots Pro
AI Model Workflow Graph
AI Model Workflow Graph Pro
Database Foreign Key Diagram
Database Foreign Key Diagram
Class Members and Interest Group Relations
Class Members and Interest Group Relations Pro
Data Manipulation
Append Graph Data in Stages
Append Graph Data in Stages Pro
Lazy Load Tree Children on Expand
Lazy Load Tree Children on Expand Pro
Managed Tree Branch Growth with Reapply
Managed Tree Branch Growth with Reapply Pro
Leaf Expand Buttons with Lazy Child Loading
Leaf Expand Buttons with Lazy Child Loading Pro
Gradient Line Graph Editor
Gradient Line Graph Editor Pro
Preset Toolbar Node and Line Creation
Preset Toolbar Node and Line Creation Pro
Context-menu Node and Line Editing
Context-menu Node and Line Editing Pro
World Map Graph Overlay with Snapshots
World Map Graph Overlay with Snapshots Pro
Graph Editor with Context Menu and Local Save
Graph Editor with Context Menu and Local Save Team
Unconventional data
Multiple Relationship Networks
Multiple Relationship Networks
Multiple Disconnected Subsystem Networks
Multiple Disconnected Subsystem Networks
Disconnected Multi-Group Force Relayout
Disconnected Multi-Group Force Relayout
Isolated Nodes
Isolated Nodes
Force Layout Isolated Nodes with Hidden Helper Lines
Force Layout Isolated Nodes with Hidden Helper Lines
Circle Layout Isolated Nodes with Green Straight Links
Circle Layout Isolated Nodes with Green Straight Links
Load Tree from Hierarchical Data
Load Tree from Hierarchical Data
Built-in UI components & Slots
View and Canvas Slot Overview
View and Canvas Slot Overview
Connect Targets Across Canvas Elements, Nodes, and Grid Items
Connect Targets Across Canvas Elements, Nodes, and Grid Items
Built-in Toolbar Position and Theme Switching
Built-in Toolbar Position and Theme Switching
Customize Toolbar Buttons
Customize Toolbar Buttons Pro
Custom Toolbar and Cross-Layer Tooltips
Custom Toolbar and Cross-Layer Tooltips Pro
Custom Node Expand Button Slot
Custom Node Expand Button Slot Pro
Events & Interactions & Control
Runtime Graph Controls
Runtime Graph Controls Pro
Character Relationship Graph Filters
Character Relationship Graph Filters Pro
Search Node and Focus Viewport
Search Node and Focus Viewport Pro
Node Hover Detail Tooltip
Node Hover Detail Tooltip
Custom Toolbar and Cross-Layer Tooltips
Custom Toolbar and Cross-Layer Tooltips Pro
Node and Line Tooltips with Context Menu
Node and Line Tooltips with Context Menu Pro
Customize Fullscreen Target Container
Customize Fullscreen Target Container
Node, Line, and Canvas Context Menu
Node, Line, and Canvas Context Menu
Node Context Menu via Slots
Node Context Menu via Slots
Character Relationship Graph Operations
Character Relationship Graph Operations Pro
Canvas Interaction Events
Canvas Interaction Events
Canvas Selection and Node Creation
Canvas Selection and Node Creation
Create or Select Nodes by Drag Selection
Create or Select Nodes by Drag Selection
Node and Line Click Highlighting
Node and Line Click Highlighting Pro
Highlight Related Lines on Node Hover
Highlight Related Lines on Node Hover Pro
Highlight Line and Endpoints on Click
Highlight Line and Endpoints on Click Pro
Node Descendant Subtree Highlight
Node Descendant Subtree Highlight
Graph Resize Event
Graph Resize Event
Graph Zoom Presets
Graph Zoom Presets
Leaf Expand Buttons with Lazy Child Loading
Leaf Expand Buttons with Lazy Child Loading Pro
Root-Side Branch Visibility Toggles
Root-Side Branch Visibility Toggles
Initially Collapsed Expandable Tree
Initially Collapsed Expandable Tree
Whole-Graph Expand/Collapse Playback
Whole-Graph Expand/Collapse Playback Pro
Depth-First Tree Expansion Playback
Depth-First Tree Expansion Playback Pro
Expand Tree to Selected Level
Expand Tree to Selected Level Pro
Focus Viewport by Node ID
Focus Viewport by Node ID Pro
Automatic Layout Preset Switching
Automatic Layout Preset Switching Pro
Connected Subnetwork Layout Switcher
Connected Subnetwork Layout Switcher Pro
Connected Component Layout and Theme Switcher
Connected Component Layout and Theme Switcher Pro
Multi-Group Graph Layout and Style Editor
Multi-Group Graph Layout and Style Editor Team
Graph Theme and Layout Preset Switcher
Graph Theme and Layout Preset Switcher Team
Canvas Multi-Node Selection
Canvas Multi-Node Selection Pro
Canvas Drag and Wheel Modes
Canvas Drag and Wheel Modes Pro
Canvas and Node Interaction Locks
Canvas and Node Interaction Locks
Style & animation & effects
Graph CSS Theme Switcher
Graph CSS Theme Switcher Pro
Graph Theme and Layout Preset Switcher
Graph Theme and Layout Preset Switcher Team
Partition Graph with Canvas Zones
Partition Graph with Canvas Zones
Node Neighborhood Group Background
Node Neighborhood Group Background Pro
Click-Driven Related Node Group Highlights
Click-Driven Related Node Group Highlights Pro
Canvas Center Offset
Canvas Center Offset
Layout Rotation Controls
Layout Rotation Controls Pro
Initialize Graph On Tab Reveal
Initialize Graph On Tab Reveal
Expand/Collapse Relayout Toggle (Top-Down Tree)
Expand/Collapse Relayout Toggle (Top-Down Tree)
Expand/Collapse Relayout Toggle (Center Layout)
Expand/Collapse Relayout Toggle (Center Layout)
Graph Canvas Theme Switcher
Graph Canvas Theme Switcher
Custom Line Arrow Presets
Custom Line Arrow Presets
Line-Following HTML DIV Overlay
Line-Following HTML DIV Overlay Pro
Graph Line Animation Presets
Graph Line Animation Presets
Screenshot & Watermark
Export Full Graph Image
Export Full Graph Image Pro
Export Graph Base64 Image Data
Export Graph Base64 Image Data Pro
Export Visible Graph Area Image
Export Visible Graph Area Image Pro
Generate an image with background
Generate an image with background Pro
Preview Graph Image with Tiled Background
Preview Graph Image with Tiled Background Pro
Instance API
GraphInstance Expand and Collapse API
GraphInstance Expand and Collapse API
Custom GraphInstance Mixed Layout
Custom GraphInstance Mixed Layout Pro