我试图从networkd3可视化forceNetwork
中节点的名称。
forceNetwork(Links = linksF, Nodes = Nodes2,
Source = "source", Target = "target",
Value = "value", NodeID = "name", Group = "group",
Nodesize = "size", linkDistance = 350,
opacity = 0.8, fontSize = 30, linkColour = "#2B2033",
radiusCalculation = "d.nodesize+6",
linkWidth = JS("function(d) { return (d.value/3); }"),
legend = TRUE, zoom = TRUE)
目前,鼠标悬停时会显示节点的名称,是否有可能在鼠标悬停时显示所有邻居?
如果没有,我怎么能一直显示所有节点名称?
答案 0 :(得分:0)
使用opacityNoHover = 1
参数...如帮助文件&#34; opacityNoHover中所述:当鼠标未悬停在节点标签文本上时,不透明度比例的数值。&#34; < / p>