Open pureexe opened 9 years ago
my source code
var config = { dataSource: 'data.json', backgroundColor: 'transparent', graphHeight: function(){ return $("#knowledgegraph").height(); }, graphWidth: function(){ return $("#knowledgegraph").width(); }, linkDistance: function(){ return 40; }, }; var alchemy = new Alchemy(config); $("#knowledgegraph").dblclick(function(){ var nodeId = Math.floor(Math.random()*10000); alchemy.createNodes({ caption:"This is a new node", id:nodeId }); });
PS. Graph render is work fine.
Try alchemy.create.nodes()
alchemy.create.nodes()
Does someone has the fix for this?? alchemy.create.nodes({id:42, caption:"hello"}) does not seem to work...
my source code
PS. Graph render is work fine.