Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Large dataset on Sigma.js

I'm currently working on a project using sigma.js where I need to show a large number of nodes and edges (~10000 to ~100000 of each one) stored in a JSON file. But the library is getting laggy when I load the JSON, on each refresh and also when it shows me the graph it doesn't space the nodes. I was wondering if someone knows how to represent this kind of dataset fine.

like image 369
donc3 Avatar asked Apr 11 '16 08:04

donc3


1 Answers

To be honest i am on the same issue if it can helps, i think the book example of Gephi.org tutorial is still the best.

For the moment i am on including sigmaJS from cloudflare but i don't have any proposition for this.

Something like you replace the library with a link to cloudflare like the one used for phaser.io explained in it git repository or even tweenJS use the same way (it's the way of web devs see #indiedev #indiegamedev on twitter, it helps)

<script src="sigma.min.js"></script>
<script src="sigma.parsers.json.min.js"></script>

http://jsfiddle.net/thefailtheory/L45ue3er/

like image 137
nazimboudeffa Avatar answered Nov 04 '22 05:11

nazimboudeffa