GraphAlchemist / Alchemy

Other
517 stars 232 forks source link

Unable to get captions on nodes #550

Closed betseyb closed 9 years ago

betseyb commented 9 years ago

Following the example in the documentation, I set "nodeCaptionsOnByDefault" to 'true', but I only get captions on my nodes when I mouse over them. Additionally, it seems that my nodeCaption function is getting called on MouseOver, NOT my nodeMouseOver function. I'm stymied. It would really help if there was documentation somewhere describing all of the config variables, instead of having to wade through the examples hoping to find the relevant ones. config.nodeTypes = { type : ["Cluster","Image", "Topic", "Entity", "Annotation", "Video"]} config.nodeCaption=function(n) {return n.name;}; config.edgeCaption={"caption":["CO_OCCURRENCE","LATENT_ASSOCIATION","ASSOCIATE_WITH","SIMILAR","IMAGE_OF", "CONTAINS", "CLUSTER_ASSOC", "HAS", "VIDEO_CONTAINS"]}; config.nodeMouseOver = function(n) {return n.id + "
"+n.name || n.title;}; config.nodeCaptionsOnByDefault = true;

betseyb commented 9 years ago

User error. I managed to have an old version of alchemy.js