How can I show multiple properties on neo4j plot?
In neo4j, how can I display multiple properties on a graph? For example, if I need to display a person's name and birth_year.
When I run this request MATCH (p:person) RETURN p.person_id, p.birth_year LIMIT 25
, it displays the data in tabular format in neo4j browser. If I click on the graph, it says "No graphical representation. You must RETURN nodes, relationships or paths to see the graph visualized."
Any suggestions?
source to share
Neo4j 2.2 browser displays multiple properties when clicking on a node in the bottom bar. This means you need to return the nodes, i.e. MATCH (p:person) return p limit 25
to be able to use graph visualization.
EDIT: You can edit your graphic stylesheet to contain something like this:
node.person {
color: #68BDF6;
border-color: #5CA8DB;
text-color-internal: #FFFFFF;
caption: '{person_id},{birth_year}';
}
but then you will need to do this for whatever setting you want.
source to share