jacomyal / sigma.js

A JavaScript library aimed at visualizing graphs of thousands of nodes and edges
https://www.sigmajs.org/
MIT License
11.29k stars 1.59k forks source link

Server requests with sigmajs #764

Closed danielritter closed 3 years ago

danielritter commented 8 years ago

Is there a way to do server requests?

I try to realize a coarse grained graph project which has several coarse graining levels (e.g. seven levels in my case). Every level contains a full graph representation in json. Level 0 contains all details and information. Level 6 contains all parent nodes of level 0, 1, 2, 3, 4 and 5, also it contains just a few nodes and edges. I preprocess my data and after that I have seven different json files. One json file represents one coarse graining level.

What I want When I zooming out a specific range I want to change the level and do a server request to get the new data (one of these seven json files) and reload this data in the graph. How can I do that? How can I change the sigmajs instance and reload/refresh the new instance on the screen? Here I see I can refresh an existing instance sigma.parsers.json, but I want to refresh a new instance (one of these json files). For that I need server requests.

I need server requests also for implementing a search functionality which loads and gets the searched data from the server. How can I do that?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.