SVG Based Workflow Diagram Plugin With jQuery workflowChart js - Download SVG Based Workflow Diagram Plugin With jQuery - workflowChart.js

Download SVG Based Workflow Diagram Plugin With jQuery – workflowChart.js

Posted on

This time I will share jQuery Plugin and tutorial about SVG Based Workflow Diagram Plugin With jQuery – workflowChart.js, hope it will help you in programming stack.

SVG Based Workflow Diagram Plugin With jQuery workflowChart js - Download SVG Based Workflow Diagram Plugin With jQuery - workflowChart.js
File Size: 3.71 KB
Views Total: 10273
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

workflowChart.js is a simple, lightweight jQuery plugin which uses svg.js to draw a SVG based workflow diagram to visualize how tasks will flow between nodes.

How to use it:

1. Include the necessary jQuery and SVG.js JavaScript libraries on the html page.

1 <script src="jquery-3.0.0.slim.min.js"></script>
2 <script src="svg.min.js"></script>

2. Download and include the workflowChart.js script after jQuery library.

1 <script src="workflowChart.js"></script>

3. Create a container you want to place the workflow diagram.

1 <div class="workflow">
2 </div>

4. Initialize the plugin and add you custom data containing IDs, node titles, parent nodes, links to the workflow diagram.

01 $('.workflow').workflowChart({
02   data: [
03     {id: 1, title: 'Node 1', parent: null, optional: false},
04     {id: 2, title: 'Node 2', parent: 1, optional: false},
05     {id: 3, title: 'Node 3', parent: 2, optional: true, link: '#'},
06     {id: 4, title: 'Node 4', parent: 2, optional: false, link: '#'},
07     {id: 5, title: 'Node 5', parent: 4, optional: false, link: '#'},
08     {id: 6, title: 'Node 6', parent: 5, optional: false, link: '#'}
09   ]
10 })

5. Optional settings to customize the workflow diagram.

1 $('.workflow').workflowChart({
2   height: 160,
3   textSize: 20,
4   circleSize: 20,
5   chartColor: '#45B6AF',
6   textColor: '#000
7 })

This awesome jQuery plugin is developed by limuxy. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net