Can't get alchemy.js graph visualization to display panel, zoom or search

The Alchemy.js lib creates and provides a nice abstraction for graphical layouts. I can't seem to get a sample pane app that allows searching and filtering. Scaling doesn't work either. Following are the configuration values:

var config = {
dataSource: team,                      
cluster: true,
nodeCaption: "firstName",
rootNodeRadius: 30,      
nodeCaptionsOnByDefault: true,
directedEdges:true,
showControlDash: true,
showStats: true,
nodeStats: true,
showFilters: true,
nodeFilters: true,
captionToggle: true,
edgesToggle: true,
nodesToggle: true,
toggleRootNotes: false,
search: true,
zoomControls: true
};

      

Here is the code that doesn't work: https://jsfiddle.net/aneesha/mpa6sbsb/6/

+3


source to share


1 answer


So ... I dug out and they seem to have left the toggleControlDash from Alchemy.prototype.interactions in the last two versions. I went back to my 0.3.1 version, copied / pasted this function into a new alchemy.js file and now it works.



I'm sure all examples are built on different versions. I found some other things that don't work either, I'll just go in and fix them myself. If you are still looking for help on this, let me know :)

+2


source







All Articles