Back to index

Random nodes graphh

$(function() { var myCanvas = $('#3dcanvas').scene3d({ width:"400", height:"400px", background: "#eeffff", fontFamily: 'Arial', fontSize: 0.4, ViewpointPosition: '0,0,10' }); $.getJSON( "actors.json", function( myGraph ) { myCanvas.addGraph({ layout: 'random', data: myGraph, width: 5, height: 5, depth: 5 }); }); nodeClickHandler = function( gObj ) { alert ( $(gObj).data('bio') ); } edgeClickHandler = function( gObj ) { alert ( $(gObj).data('movie') ); } });
Click on a node or on an edge for more info. Click here to view actors.json file