Logo
NeoArc Studio

Graph Diagram Block

Create force-directed graph diagrams for visualising entity relationships, domain models, and service dependencies. D3-powered visualisation with interactive node properties.

Graph diagrams use D3.js force simulation to create dynamic, interactive visualisations of entity relationships. Each node can contain properties with data types and constraints, making them ideal for domain models, ERD-style schemas, and service architecture documentation.

When to Use

Block Properties

PropertyRequiredDescription
Diagram PathYesPath to the .graph-diagram.json file
TitleNoOptional title displayed above the diagram

Node Properties

Each node in a graph diagram can contain properties that describe its attributes.

Property AttributeDescription
NameProperty name displayed in the node
TypeData type (String, Integer, UUID, Boolean, DateTime, etc.)
RequiredConstraint badge indicating mandatory values
UniqueConstraint badge indicating unique values
IndexedConstraint badge indicating query optimisation
Default ValueDefault value for optional properties

Edge Labels and Cardinality

Example: E-Commerce Domain Model

This diagram shows core entities and relationships for an e-commerce platform. Select a node to view its properties in the right panel.

Example: Microservice Architecture

Graph diagrams work well for showing service dependencies with their configuration properties.

Interactive Features

FeatureDescription
Drag NodesReposition nodes to improve layout; force simulation adjusts surrounding nodes
Zoom and PanNavigate large diagrams using mouse wheel and drag
Select NodesDouble-click a node to view its properties in the side panel
Filter NodesUse the nodes list panel to search and filter by name
Toggle ThemeSwitch between light and dark modes to match documentation

Force Simulation

Editor Keyboard Shortcuts

ShortcutAction
TabCreate a new node connected to the selected node
Delete/BackspaceDelete selected nodes or edges
EscapeClear selection
Shift+DragCreate an edge between two nodes
Ctrl/Cmd+ZUndo last action
Ctrl/Cmd+YRedo action
Double-clickEdit node or edge label

Export Options