-
Notifications
You must be signed in to change notification settings - Fork 329
Open
Description
Expected Behavior (Mandatory)
Should have all the nodes connected with edges.
Actual Behavior (Mandatory)
Only one node is connected with another node.
How to Reproduce the Problem
var config = {
containerId: "viz",
neo4j: {
serverUrl: "neo4j://<db>.databases.neo4j.io",
serverUser: "neo4j",
serverPassword: "password",
driverConfig: {
encrypted: "ENCRYPTION_ON",
trust: "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"
}
},
visConfig: {
nodes: {
shape: 'circle',
// size: 20,
font: {
face: 'arial',
size: 12,
strokeWidth: 0,
},
widthConstraint: 96,
shadow: true,
},
edges: {
hoverWidth: 0,
selectionWidth: 0,
smooth: {
type: 'continuous',
roundness: 0.15
},
font: {
size: 9,
strokeWidth: 0,
align: 'top'
},
color: {
inherit: false
},
arrows: {
to: {
enabled: true,
type: 'arrow',
scaleFactor: 0.5
}
}
}
},
labels: {
Site: {
label: "Site Name",
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
static: {
size: 250,
},
cypher: {
value: "MATCH (n) RETURN (n)"
},
function: {
title: function(node) {
// split every 10th letter with new line
var nameArray = node.properties['Site Name'].split(' ')
var siteName = '';
spaceCounter = 0
for (const name of nameArray) {
siteName += name + ' ';
spaceCounter += name.length;
if (spaceCounter > 10) {
siteName += '\n'
spaceCounter = 0;
}
}
node.properties['Site Name'] = siteName;
return node;
}
}
}
},
Dataset: {
label: "Dataset Name"
}
},
relationships: {
CONTAINS: {
label: true,
value: 'weight',
[NeoVis.NEOVIS_ADVANCED_CONFIG]: {
function: {
title: function(edge) {
console.log(edge);
}
}
}
}
},
initialCypher: cypherValue
}
var viz = new NeoVis.default(config);
viz.render();
Screenshots (where it's possibile)
Specifications (Mandatory)
Currently used versions
Versions
- OS: Windows
- Library: JavaScript Web
- Neo4j: version 5
Metadata
Metadata
Assignees
Labels
No labels