How does neovis.js display the names of nodes and edges?
#377
-
|
Hi, How does The name is displayed on the diagram of the demo, but the examples in the My Neo4j Node's properties, I want to show I only modified the serverUrl, serverUser, and serverPassword in advanced-example.html locally, and the page effect is as follows: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
To see the labels: {
User: {
label: "name"
}
}
To view edge labels, you need to do something like this: relationships: {
MY_RELATIONSHIP_LABEL: {
[NEOVIS_ADVANCED_CONFIG]: {
function: {
label: (edge) => edge.type
},
}
},
},You can also use the |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Sorry,I still don't understand how to display the names of nodes.In this case: |
Beta Was this translation helpful? Give feedback.

To see the
nameproperty on your node, you can try doing something like this:namecan also be the name of any other property which a node possesses. In your example,field2orfield3To view edge labels, you need to do something like this: