anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.75k stars 425 forks source link

Getting data on nodes and links #112

Closed richa2008 closed 9 years ago

richa2008 commented 9 years ago

Hi, I am using Vivagraph.js for creating a network which contains around 5000 nodes and links.I want to display data on only those nodes which are present inside the viewport. How can I do this???

anvaka commented 9 years ago

Library does not support this out of the box currently. Are you going to use WebGL renderer?

richa2008 commented 9 years ago

No.I am using SVG renderer. I am trying to display text for 5000 nodes which is making my page unresponsive. Please let me know if there is a way out for my issue...

anvaka commented 9 years ago

Yeah, most browsers will choke on 5k DOM elements, regardless of drawing library.

You can consider switching to webgl rendering, though it is harder to use.

You could also have a simple rectange to show node, and give additional data on mouse hover, similar to this: http://www.yasiv.com/facebook

richa2008 commented 9 years ago

Okay...Can I divide my diagram into clusters so that,on clicking or hovering on any cluster will result in the data display of the nodes present in that cluster.If so,how can I do that.Please help...

anvaka commented 9 years ago

It would really depend on your data. Out of the box VivaGraph does not support automatic clustering.