Skip to main content

Hierarchy Layout

The classic organization chart layout, with support for horizontal/vertical axis and a number of different alignment options
Vanilla JS
React
Angular
Vue
Svelte
Typescript
Hierarchy layout with orthogonal edge routing
Hierarchy layout with orthogonal edge routing, bus mode
Hierarchy layout with direct edge routing
Vertical alignment, parent relative placement
Horizontal alignment, parent relative placement
Horizontal alignment, centered placement
JsPlumb - When you've reached the limit with ReactFlow, we can help!

The source code for this demo is available on Github.

Vanilla JS
Angular
React
Svelte
https://github.com/jsplumb-demonstrations/hierarchy-layout

If you haven't got a license for JsPlumb, we offer 30 day evaluations.

Start a free trial

What is a Hierarchy Layout?

A Hierarchy layout renders nodes in a hierarchical tree. The classic use case for this layout is for Organisation Charts, but there are many datasets for which this layout is useful. On our site we use this layout for our Org Chart demonstration, as well as for our collapsible tree demonstrationand selection rendering demonstration

One great feature of JsPlumb's Hierarchy layout is its ability to integrate with the Edge Routing plugin - we've included a couple of examples of that in this page.

This layout can be used seamlessly with JsPlumb's Angular, React, Vue and Svelte integration packages.

For a full discussion of this layout, see our docs: https://docs.jsplumbtoolkit.com/toolkit/7.x/lib/layout-hierarchy

More Demos
See all demos

Flowchart builder application - JsPlumb, build diagrams and rich visual UIs fast

Flowchart

Gantt chart builder application - JsPlumb - JavaScript and Typescript diagramming library that fuels exceptional UIs

Gantt

Chatbot builder application - JsPlumb - JavaScript and Typescript diagramming library that fuels exceptional UIs

Chatbot

Callflow builder application - JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

Call Flow

Kanban application - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Kanban

Network topology diagram builder - JsPlumb, flowcharts, chatbots, bar charts, decision trees, mindmaps, org charts, gantt charts and more

Network Topology

Database schema builder application - JsPlumb - JavaScript and Typescript diagramming library that fuels exceptional UIs

Database Schema

Org Chart application - JsPlumb, build diagrams and rich visual UIs fast

Org Chart

Mindmap builder application - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Mindmap

Element grouping demonstration - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Nested Groups

Path tracing demonstration - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Path Tracing

Hello world demonstration - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Hello World

Image processor application - JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

Image Processor

Neighbour views dynamic selections demonstration - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Neighbourhood Views

Active filtering demonstration - JsPlumb, flowcharts, chatbots, bar charts, decision trees, mindmaps, org charts, gantt charts and more

Active Filtering

Org chart layout demonstration - JsPlumb, flowcharts, chatbots, bar charts, decision trees, mindmaps, org charts, gantt charts and more

Hierarchy Layout

CAD Drawing tools demonstration - JsPlumb - JavaScript and Typescript diagramming library that fuels exceptional UIs

Connector Editors

Force directed layout demonstration, org chart layout demonstration - JsPlumb, build diagrams and rich visual UIs fast

Layouts

Collapsible hierarchy Italic language family demonstration - JsPlumb - Angular, React, Vue, Svelte diagramming library

Collapsible Hierarchy

Nested instances desktop example - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Nested Instances