Dynamic digram is a small library that base on html5 canvas. It soppurt touch interface on mobile devices. It helps you to create flowchart as easy as possible.
- First, click on a shape on the tool box and make it active.
- Then, click on the chart box to make the pop up visible.
- Finaly, type your custom text inside textbox an click on ad button.
*You can right click on a shape(tap and hold on a shape on touch devices) to make the options menu visible.
######main demo ######right to left demo
Download dynamic-diagram:
- With Bower:
$ bower install dynamic-diagram
- With Git:
$ git https://github.com/yasharAyari/dynamic-diagram.git
- Or manually downloading the latest release.
- Make sure that you have installed nodejs & npm & bower & grunt-cli
- Run these codes on terminal
$ npm install
$ bower install
grunt serve
- Open 'http://localhost:9001/example' on your faverite browser
Add these lines to your html file :
<link rel="stylesheet" href="bower_components/bootstrap-sass-rtl/dist/css/ltr/bootstrap.min.css">
<link rel="stylesheet" href="src/css/dynamicDiagram-ltr.css">
<script src="dynamic-diagram.js"></script>
<script type="text/javascript">
window.onload = function() {
dynamicDiagram.init(
{
id: 'canvas',
selectedColor: '#9E7AB8',
shapesClass: '.toolbar__item',
shapeList: [],
}
);
};
</script>