I was recently working on one assignment where in we need to draw the flow of inventory movements based on the incoming data from the database. These datasets have to configured based on the routes coming from the database. Also, the case was values coming from database are redundant as well, so the algorithm has to be smart enough to figureout which route has been drawn and if same is getting repeated, then skip that part for the next time.
For making the same i have used one open API by google (http://jsplumb.org/demo/flowchart/dom.html), then modified the built in api based on my requirement. It’s a fairly, good combination of server side and client side projection. Below, is the sample code which i have used for the same.
Above snippet is MVC view where in, I have handled service side data with jsplumb. So, basically, based on the incoming data, its drawing the below diagram. This diagram is nothing but the data visualization diagram based on two sets of inputs. So, here user will be selecting different combinations from the two different dropdowns and then, based on that it will draw the diagram here.
I hope you like it. Thanks for joining me.
Thanks,
Rahul Sahay