Closed venkata82 closed 10 years ago
That particular example was exported from the Cytoscape desktop app. The graph already had position data defined from the desktop app.
You'll notice those positions aren't actually being used, if you play around with the example. Here it is with the preset positions from the export: http://jsbin.com/zoxab/1/edit
You can see that the concentric layout automatically positioned the nodes in the actual example, overriding the positions set in the elements JSON: http://jsbin.com/wuvac/latest/edit?js,output
Whatever layout you use (or you can write your own too!) will automatically position the nodes in the graph.
Here's the list of builtin layouts: http://cytoscape.github.io/cytoscape.js/#layouts
I see GeneMANIA chart data, It has all hard coded co-ordinates. Is there and algorithm to get those coordinates by an algorithm?