我在使用neovis.js时,发现关系无法显示出来,如下图所示,以下是我的配置
var config = {
containerId: “viz”,
neo4j: {
serverUrl: “bolt://localhost:7687”,
serverUser: “neo4j”,
serverPassword: “csu123”
},
labels: {
Project: {
label: “name”,
value: “pagerank”,
group: “community”
},
Person:{
label: “name”,
value: “pagerank”,
group: “community”
},
Bidder:{
label: “name”,
value: “pagerank”,
group: “community”
},
Agent:{
label: “name”,
value: “pagerank”,
group: “community”
}
},
relationships: {
AGENT_OF: {
value: ‘weight’,
caption: true,
label: “name”,
}
},
visConfig: {
nodes: {
shape: ‘square’
},
edges: {
arrows: {
to: {
enabled: true,
type: “arrow”,
},
},
},
},
initialCypher: MATCH (n{name:"项目21479"})-[r1]-(m)-[r2]-(o),(a)-[r3]-(n)RETURN n,r1,m,r2,a,r3
};
我想要知道如何才能将关系显示出来,有大佬知道吗
使用neovis.js时无法显示关系