Label Rendering
Each page has a title, and so each node in the graph can have a label associated with it. Here, you can find information on how you can customize the rendering of these labels, such as their size, relative position and opacity (under different conditions).
Label Rendering
The renderLabels
option toggles the rendering of labels on the nodes of the graph. When labels are rendered, they display the name of the node.
Label Font Size
The labelFontSize
determines the size of the labels on the nodes of the graph.
Label Offset
The labelOffset
determines the distance between the label and the node.
Label Scale (Hover)
The labelHoverScale
determines the scale of the labels on the nodes of the graph when hovered over.
Label Offset (Hover)
The labelHoverOffset
determines the distance between the label and the node when hovered over.
So when hovered, the label will be offset to the specified distance (it is not additive to the base labelOffset
).
Label Opacity Scale
The labelOpacityScale
determines how opaque the labels on the nodes of the graph are, based on the zoom level.
A higher value will make the labels visible at lower zoom levels (when the user has zoomed out).
Label Opacity (Hover)
The labelHoverOpacity
determines how opaque the labels on the nodes of the graph are when hovered over.
A higher value will make the labels more opaque when hovered over.
Label Opacity (Adjacent)
The labelAdjacentOpacity
determines how opaque the labels on the nodes of the graph are when adjacent to the hovered node.
A higher value will make the labels more opaque when adjacent to the hovered node.
Label Opacity (Muted)
The labelMutedOpacity
determines how opaque the labels on the nodes of the graph are when the node is not adjacent or hovered over.
A higher value will make the labels more opaque when the node is not adjacent or hovered over.