Hello Doc,
After generating the json data from server side I am trying to visualize data on single canvas using mouse click on client side. e.g (<li><a href="javascript:void(0)" onclick="buildSpaceTree()">SpaceTree</a></li>)

I have loaded HyperTree for the first time which loads perfectly fine. (shown above)
Now when I click other graph options (SpaceTree, RGraph, ) I delete center-container and infovis div element and create them again.
Than I call the appropriate init method.
The json data load fine but I am not able to see labels and perform onclick events.
Am I missing something here ? I would appreciate someone can point that out OR
Suggest me some better way to display graph on same canvas
var container = document.getElementById("container");
var parentcenter = document.getElementById("center-container");
container.removeChild(parentcenter); // delete center-container
var newdiv = document.createElement('div');
var divIdName = 'center-container';
newdiv.setAttribute('id',divIdName);
container.appendChild(newdiv); //create center-container
parentcenter = document.getElementById("center-container");
newdiv = document.createElement('div');
divIdName = 'infovis';
newdiv.setAttribute('id',divIdName);
parentcenter.appendChild(newdiv); // create infovis div element