OptionalcaptionThe text to display inside on node or relationship. @note: If both caption and captions are provided, captions takes precedence. @note: To provide multiple captions with custom styles, use the captions property. @note: Captions are only visible when using the 'canvas' renderer.
OptionalcaptionThe caption align. Has no affect on self-referring relationships.
Optional ExperimentalcaptionThe DOM element to display on top of a relationship caption.
The captionSize and captionAlign properties will affect the position and height of the html container element.
OptionalcaptionsThe caption text and font styles. @note: To provide a single caption without custom styles, you can also use the caption property. @note: Captions are only visible when using the 'canvas' renderer.
OptionalcaptionThe caption text size.
OptionalcolorThe color of the graph element.
OptionaldisabledWhether or not the current node or relationship is disabled.
Node id where the relationship starts from.
OptionalhoveredWhether or not the current node or relationship is hovered.
ReadonlyidThe id of the current node or relationship. Ids need to be unique across all nodes and relationships. Ids need to be strings and cannot be empty.
OptionaloverlayAn icon to be displayed anywhere on top of the graph element. Icons are expected to be square.
Optionalposition?: number[]The position of the icon relative to the node or relationship.
The position is a percentage of the node or relationship size.
[1, 1] is the bottom right corner of the node or relationship.
[-1, -1] is the top left corner of the node or relationship.
Optionalsize?: numberThe size of the icon relative to the node size or relationship caption size. The size is a percentage of the node size or relationship caption size.
The url to the icon.
OptionalselectedWhether or not the current node or relationship is selected.
Node id where the relationship points to.
OptionaltypeThe relationship type.
OptionalwidthThe width of the relationship.
A relationship inside the graph visualization.