These days, enterprises across globe, irrespective of their industry, are relying upon data visualization tools to analyze past trends and set well defined strategies accordingly. As there are various ways to demonstrate and interpret data, it is important to understand which forms of displays work for various types of data. There are various forms like tabular or list structure in which you can display data. But sometimes use of effective diagrams become inevitable to accurately interpret data.
Let’s say you are working with large data-sets, then it makes more sense to aggregate data and display it in form of chart or graph. In case of geospatial data, a map would be best tool to visualize.
Among all D3.js and sigma.js are very popular. And I choose sigma.js over d3.js because,
- Sigma.js is plug-and-play, very easy to draw a force-directed graph with nice built-in features, while d3.js requires more work to get to the same result.
- Sigma.js implements “force atlas 2 ” algorithm – like the one found in Gephi, which may be more suitable for some graphs (when you want to highlight community structures)
- Sigma.js is significantly faster than D3 for drawing large graphs because, Sigma supports canvas and webGL; however, it’s only able to draw graphs.
- Sigma is more interactive than d3.js and specific to graph visualization and it helps with the “hairball problem” : js Cleans up Hairball Network Visualizations
- If you are looking for building highly advanced graph, Sigma.js provides an unbelievable amount of interactive settings inside its library, and also within its plug-ins. Moreover, Sigma’s developers encourage people to re-configure this library and create plug-ins, which has resulted in a large open-source network.
- Visit https://github.com/jacomyal/sigma.js/wiki for getting started with sigma.js and setup instructions.
- As we saw how and why Sigma can be useful in data visualization, let’s learn how to render social network data set using sigma. In order to load JSON file, use SigmaJS JSON Parser class.
Here is very simple json. (friends.json)
firstly, a little HTML code which import the sigmajs files :
you can download sigmajs files from <a href=”https://github.com/jacomyal/sigma.js/releases/”>https://github.com/jacomyal/sigma.js/releases/</a>
then, add a div tag as a placeholder for graph and give it some style.
- I’ve given very basic usage of parser which is to pass json file and the container id where sigma will render the graph.Output:
you can use plugins provided by sigma to add more features to your graph. You can also customize your graph using settings API and Renderers API.
I’ll demonstrate ForceAtlas2 plugin to use force-directed layout for big data visualization in my next post. Stay tuned folks.. !!
Analytics7 min read
If you are still mining data to get crucial insights, you could be at the losing end. It’s high time for you to reverse...
Analytics11 min read
In this digital age, organizations are building their economy on massive data streams. The modern internet user base ha...
Analytics8 min read
While digital technologies are dramatically reshaping modern enterprises, some businesses are pursuing large-scale chan...
Receive articles like this in your mailbox
Sign up to get weekly insights & inspiration in your inbox.
2500 people are reading this blog every week