1
votes

Have some nodes with multiple labels. Labels are assigned colors for the graph output of a Match Result.

Is there a way to force a node to show a specific label color? Am able to select the property to show on the node. The correct (more specific label) would make the graph display much more readable.

thanks, Dave using Neo4j CE 3.0.6 on Win10

2

2 Answers

1
votes

Probably best achieved using an external style sheet (GRASS) .

  1. To create this click on the 'star' in the left-hand pane of the Neo4J browser.
  2. At the bottom there is a button labeled 'Graph Style Sheet' which you can click on and then download to edit.

Once finished drop the CSS file onto the grey bar at the bottom of the Graph Style Sheet dialog at 2).

In terms of controlling the appearance when multiple labels apply this is determined by the order in which the styles are defined.

See

0
votes

When the graph is displayed :

enter image description here

In this graph, there are 4 User nodes, two of them having the Organization label (domain is Github).

You can click on the specific label, for example Organization on the top, next to *(4) , once clicked, colors will appear on the bottom of the frame, click one of them to apply this color to the chosen label :

enter image description here