Wednesday, September 23, 2015

Drawing graphs with vis.js

First of all I want to give a shout out to the guys who made amazing visjs library - it is a great thing. It has a ton of different features, I used only network, but there are much more out there.

We had a task recently: our customer works with a chain of suppliers and factories often related to each other, and all this data is stored in the database. We had to find a way to visualize data and display it as user friendly graph. And we found vis.js :) So we took our data, mapped it properly and got this with no effort at all:

Let's take a look on how it’s done.