cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How to make the tooltip only display a few properties from label?

When cursor pointed on nodes will showing tooltips with full data from labels. How can i choose what properties to show on this tooltips?

In this case, i just want to show "namaInstansi" and "email".

NB : use vis.js

1 ACCEPTED SOLUTION

MuddyBootsCode
Graph Steward

Hello welcome to the community! I'm assuming here that you're talking about neovis.js? In which case take a look at the documentation here. You can change what parts of your labels are show in the config var:

var config = {
                container_id: "viz",
                server_url: "bolt://localhost:7687",
                server_user: "neo4j",
                server_password: "sorts-swims-burglaries",
                labels: {
                    //"Character": "name",
                    "Character": {
                        "caption": "name",
                        "size": "pagerank",
                        "community": "community",
                        "title_properties": [
                            "name",
                            "pagerank"
                        ],
                        //"sizeCypher": "MATCH (n) WHERE id(n) = {id} MATCH (n)-[r]-() RETURN sum(r.weight) AS c"
                    },

You'll see a few examples like this in the documentation. I hope this helps.

View solution in original post

2 REPLIES 2

MuddyBootsCode
Graph Steward

Hello welcome to the community! I'm assuming here that you're talking about neovis.js? In which case take a look at the documentation here. You can change what parts of your labels are show in the config var:

var config = {
                container_id: "viz",
                server_url: "bolt://localhost:7687",
                server_user: "neo4j",
                server_password: "sorts-swims-burglaries",
                labels: {
                    //"Character": "name",
                    "Character": {
                        "caption": "name",
                        "size": "pagerank",
                        "community": "community",
                        "title_properties": [
                            "name",
                            "pagerank"
                        ],
                        //"sizeCypher": "MATCH (n) WHERE id(n) = {id} MATCH (n)-[r]-() RETURN sum(r.weight) AS c"
                    },

You'll see a few examples like this in the documentation. I hope this helps.

Thanks for helping me. It's work