Visualizing Reddit with my graph drawing library
yasiv.com
yasiv.com
The graph drawing library source code: https://github.com/anvaka/VivaGraphJS
Would love to hear what you think...
Have you seen d3.js? It has a similar force layout component, I'm curious as to your motivation for writing your own (although it looks and works very nice!)
Well done.
It is all too common that a visualization like this will cripple performance, the reddit and book visualization are still very smooth for panning/zooming.
The pinch to zoom would work fine, but Safari intercepts this. Modifier key+scrolling to zoom would be fine as well, but not so discoverable. Apple should add some of the iOS multitouch events to Safari, but it's not a good fit since there's really only one visible pointer in OS X. Google Maps would really benefit from this.
1) There are many, many more reddits than I knew about but I can't read that many.
2) That is a very nice library. I guess you have a simple spring system which compute the relative placements of the different things?
3) It is really fun to play with the springs. In fact, I will do that now.
2) Yes, every node is a particle, every edge is a spring. Then you apply forces and mother nature does the rest. It always amazed me.
Please consider fixing this. I know we dont like IE users, but please dont punish them!
The url from Reddit direct is: http://translate.google.com/translate?sl=fr&tl=en&js...
Looks like the handling of & on your side? Looks very cool though :)
It should be fixed now :). Thank you for pointing out!
graph.forEachNode(function(node) { console.dir(node.position); });
By default nodes will not have any position assigned. Only after you run one step of layout algorithm ( https://github.com/anvaka/VivaGraphJS/blob/master/src/Layout... ) they get their positions.
I wonder if it's possible to highlight the reddit mascot with css according to the :visited pseudo-class if you put an a-element around it (or some other way)?
Showing "recent activity" for sub-reddits in a subtle way would be awesome, too, can't click on everything :)
Small detail: if the search term has a white-space around, no results are found.
I will look into :visited and fix the white spaces. And what is a "recent activity"?
EDIT: apparently https://github.com/anvaka/VivaGraphJS
LinkedIn has InMaps app ( http://inmaps.linkedinlabs.com/ ) which shows your network. It's cool, but really hard to read it...