Skip to main content

Layouts

A playground for testing the various layouts that JsPlumb offers - Hierarchy, Force Directed, Circular, Balloon and more.
Vanilla JS
React
Angular
Vue
Svelte
Typescript
Layout:
{
  type: Hierarchy
}

The Hierarchy layout positions vertices in a hierarchy, oriented either vertically or horizontally, following a slightly modified version of the 'Sugiyama' method

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/layouts

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

Start a free trial
  • 'Reapply Layout' resets the positions of the nodes. Note that the Spring layout uses random positions to start and will not result in the same layout every time.
  • Use the + button to add a new child node to some node.
  • Click the 'Pencil' icon to enter 'select' mode, then select several nodes. Click the canvas to exit.
  • Click the 'Home' icon to zoom out and see all the nodes.
  • Use the undo/redo buttons to undo and redo deletion/addition operations

Layouts are discussed in the JsPlumb documentation here: https://docs.jsplumbtoolkit.com/toolkit/7.x/lib/layouts

More Demos
See all demos

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

Flowchart

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

Gantt

Chatbot builder application - JsPlumb - Angular, React, Vue, Svelte diagramming library

Chatbot

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

Call Flow

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

Kanban

Network topology diagram builder - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Network Topology

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

Database Schema

Org Chart application - JsPlumb - JavaScript and Typescript diagramming library that fuels exceptional UIs

Org Chart

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

Mindmap

Element grouping demonstration - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Nested Groups

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

Path Tracing

Hello world demonstration - JsPlumb, leading alternative to GoJS, JointJS and ReactFlow

Hello World

Image processor application - JsPlumb - Angular, React, Vue, Svelte diagramming library

Image Processor

Neighbour views dynamic selections demonstration - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Neighbourhood Views

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

Active Filtering

Org chart layout demonstration - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Hierarchy Layout

CAD Drawing tools demonstration - JsPlumb - When you've reached the limit with ReactFlow, we can help!

Connector Editors

Force directed layout demonstration, org chart layout demonstration - JsPlumb, industry standard diagramming and rich visual UI Javascript library

Layouts

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

Collapsible Hierarchy

Nested instances desktop example - JsPlumb, build diagrams and rich visual UIs fast

Nested Instances