如何使用Cytoscape.js在边上添加标签?
发布于 2013-03-05 00:47:29
将label样式属性映射到数据字段:
例如,在init上的样式表中
...
{
selector: 'edge',
style: {
'label': 'data(label)' // maps to data.label
}
}
...http://cytoscape.github.com/cytoscape.js/#style/properties
旧版本使用content:代替label:。较新版本的2.x允许使用label和content来实现向后兼容。
https://stackoverflow.com/questions/15172427
复制相似问题