Hi Rajesh,
you might want to have a look at the source of the page to examine the
script. The touchgraph I am using uses jOWL (loads data from owl
files), and jQuery, and hence requires knowledge of both to operate.
Being new to javascript I am suspecting it will not be an easy task
for you however.
Here is the main code:
var touchGraph = TouchGraph($("#touchgraph"), {
frameRate : 100,
onCreateNode : function($node, id, data){
var concept = $node.get(0).id;
var $label = $("<div class='label'/>").text(jOWL(concept).label
()).appendTo($node);
$node.click(function(){
var c = jOWL(concept);
if(c) touchGraph.addjOWLChildren(c, 8);
});
}
});
touchGraph.loadImages($("#preload img"));
jOWL.load('data/wine.owl', function(){
touchGraph.parsejOWL(jOWL("whitebordeaux"));
touchGraph.start();
}, {reason : true });
Greetings
David