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;
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;