Reputation: 1180
When I generate graph using Memgraph Lab I get something that looks like this:
I would like to change the styling of nodes and relationships. How can I do that?
Upvotes: 0
Views: 226
Reputation: 1180
Memgraph Lab uses Graph Style Script language for styling. You can use EdgeStyle
directive properties and NodeStyle
directive properties to style your graph.
For example, you can change the color and size of nodes with the following code:
@NodeStyle {
size: 35
border-width: 5
border-color: #ffffff
shadow-color: #333333
shadow-size: 20
}
With the following code you will change the visual representation of relationships:
@EdgeStyle {
width: 1
label: Type(edge)
arrow-size: 0
color: #6AA84F
}
Upvotes: 0