Closed SeXyTeA-x closed 10 months ago
https://visjs.github.io/vis-network/examples/network/labels/labelAlignment.html This is all I could find in the vis.js docs, It should be possible, but it will bot look the same as neo4j desktop
Also if you want the label to have the exact text you wrote in the config and not get it from the relationship you'll need to use NEOVIS_ADVANCED_CONFIG
No, I just want to get the relationship returned from neo4j, and in neovis.js, is there an option to set the display relationship?
in advanced config
{
// Advanced
label: rel => rel.type
}
emmm, I don't understand what you mean, is this what you mean:
var config = {
containerId: "viz",
neo4j: {
serverUrl: "bolt://localhost:7687",
serverUser: "neo4j",
serverPassword: "csu123"
},
...
relationships: {
AGENT_OF: {
value: 'weight',
label: rel => rel.type
},
WINS: {
value: 'weight',
label: rel => rel.type
},
BIDS:{
value: 'weight',
label: rel => rel.type
},
BIDS_FOR:{
value: 'weight',
label: rel => rel.type
}
},
...
};
It doesn't seem to have any effect.
Oh, I know how to configure, thank you for your answer
Expected Behavior (Mandatory)
Show the relationship between points on the edge,like this :![image](https://github.com/neo4j-contrib/neovis.js/assets/55723142/c5d5c734-8873-43dd-9932-984354006edc)
Actual Behavior (Mandatory)
there is no relationship on the edge,like this:
I want to know how to let the relationship show
How to Reproduce the Problem
Simple Example
Screenshots (where it's possibile)
Specifications (Mandatory)
Currently used versions
Versions