Editable Organization Chart

Drag, Connect, Re-parent

7 roles, 6 reporting lines

@xyflow/react + dagre
Mini Map

Select a node to edit it.

Drag from a bottom handle to a top handle to assign a new parent.

Drag nodes anywhere on the canvas, then use Auto layout when you want to normalize the tree.

Each employee can have only one parent.

Connecting a new parent replaces the old parent edge.

The CEO node is protected from delete.