Skip to content

How does neovis.js display the names of nodes and edges? #377

Closed Answered by exoup
chenkuncloud asked this question in Q&A
Discussion options

You must be logged in to vote

To see the name property on your node, you can try doing something like this:

                labels: {
                    User: {
                        label: "name"
                    }
                }

name can also be the name of any other property which a node possesses. In your example, field2 or field3

To view edge labels, you need to do something like this:

                relationships: {
                    MY_RELATIONSHIP_LABEL: {
                        [NEOVIS_ADVANCED_CONFIG]: {
                            function: {
                                label: (edge) => edge.type
                            },
                        }
                    },
                },

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by chenkuncloud
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@thebestnom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants