Questions tagged [grass-file]

GRASS-files are used in the Neo4j Browser to style nodes and relationships of a Neo4j graph.

GRASS stands for Graph-Stylesheet and lets one define a visual style for both nodes and relationships to be used within the Neo4j Browser to customize the visual appearance of a graph.

Each node- and relationship label can have it own visual style assigned to wheres inheritance is also supported. A GRASS-file contains general super-style named "node" and "relationship" which are used to inhere properties to sub-nodes and sub-relationships.

7 questions
14
votes
2 answers

Where can I find an overview of the syntax of the Neo4j GRASS language?

Neo4j's browser allows the graphs it shows to be styled using a CSS-like style file in the GRASS language (GRaph Style Sheet). However, I have not been able to find the syntax of this language. Is there any and if so, where can it be found?
equaeghe
  • 1,644
  • 18
  • 37
3
votes
1 answer

How to change the shape of NEO4j nodes through the grass stylesheet?

I would like to provide better visual segregation between nodes in Neo4j's web explorer. Is it possible to change the grass styles to allow for a square-shaped node? Below is an example of the node style I would like to alter. Is this possible…
Nathan
  • 3,082
  • 1
  • 27
  • 42
2
votes
1 answer

Neo4J - Set/Create new label on relationship based on property

I'd like to set a different style/color for relationships in my database that have the property "critical". I assume to do this, I need to update the relationships with a new label called "isCrit" and modify the grass file. Can anyone help with…
tim
  • 33
  • 2
  • 7
1
vote
1 answer

Reset Neo4j browser styles

I imported a .grass file to play around with styles, broke something along the way, and decided I'd just as soon revert to the default Neo4j Browser styles. How can I uninstall the .grass file I installed?
clozach
  • 5,118
  • 5
  • 41
  • 54
0
votes
0 answers

.grass load error in nodes with whitespaces

How can I load a .grass file with node names with whitespaces? For example: node { diameter: 50px; color: #A5ABB6; border-color: #9AA1AC; border-width: 2px; text-color-internal: #FFFFFF; font-size: 10px; } node.* { color: #FF756E; …
Shadowtrooper
  • 1,372
  • 15
  • 28
0
votes
1 answer

neo4j GraSS upload removes property quotes

I've downloaded the graphstyle.grass and added the following property to the pre-existing label: node.CELL { color: '{color}'; border-color: #60B58B; text-color-internal: #FFFFFF; caption: '{idx}'; } (The color property used to be…
geophf
  • 41
  • 5
0
votes
1 answer

Neo4j Node Visualization

In Neo4j, using .grass-style files to set the appearance of nodes and relationships, how can one pick a certain style for a node with multiple labels? Since .grass-files define the visual style of a graph item by linking a certain label to a certain…
marc wellman
  • 5,808
  • 5
  • 32
  • 59