16
votes

When you add a Node to Neo4j and you access your graph via the Neo4j Browser, the Node that was created is displayed (as a circle) and the Name property is outputted as the primary property for the Node. You can tell which Nodes are which by the name field, without having to click on them. If you do not specify a Name property, the node is just a blank circle.

I'm wondering if there is a way to specify the default "label" when visually viewing a graph via the Browser, so that I don't have to use the "name" property in order to know which Nodes are which?

3

3 Answers

36
votes

This is quite simple to achieve.

  • At the top you see the Label of the node (Type of node), for example :User.
  • At the bottom of that panel, you should be able to see the Label (User) along with color and size options.
  • At the right corner there should be an arrow "<"
  • Click this to expand your options
  • There should be an option to select the caption, which is the property you want to display by default instead of name.
10
votes

Check my attached image for any doubt on where to change label.

  1. Click on "Customers(1)" bubble near the top-left
  2. Find the "Caption:" section near the bottom of the results area
  3. Click the caption bubble desired for your label

screenshot

0
votes

version: Neo4j 4.1.2

SELECT OBJECT In you browser, after a request, go to the top left corner, just below the query bar. There, the names of displayed objects should appear. Select the object whose label you want to display.

DEFINE CAPTION FOR THE SELECTED OBJECT As soon as you have selected your object, at the bottom of your browser a new menu appears. You may have to expand that menu by clicking the little triangle on the far right. In that menu, you can define the [CAPTION] (ie. the label to display on the node), its [COLOR] and [SIZE]... Just click with your mouse.