alchemy.createNodes isn't a function
Opened this issue · 2 comments
pureexe commented
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.
- Best regrad.
watho commented
Try
alchemy.create.nodes()
CharlesCousyn commented
Does someone has the fix for this??
alchemy.create.nodes({id:42, caption:"hello"}) does not seem to work...