I use cytoscape to present a structure with image in each node. The node content is appear, but the image is not. Is there a way to concate string path with the data(id) ?
style:cytoscape.stylesheet()
.selector('node')
.css({
"content":"data(id)",
"background-image": 'url(http://puji.angin.com/cytoscape/data(id).jpg)',
"background-fit": "cover"
})
});
My full code is here: http://jsbin.com/bacoju/1/watch