ConnectionDefaults.content
configurationDefines the label displayed on the connection path.
The background color of the connection label. Accepts valid CSS colors.
The border options of the connection label. Applicable when background is set.
The color of the connection content text.
The font family of the connection content text.
The font size of the connection content text.
The font style of the connection content text.
The font weight of the connection content text.
Defines the distance (in pixels) between the label and the connection path.
Default: 5
connectionDefaults.content.padding
Number|ObjectThe padding options of the connection label. Applicable when background or border is set.
Default: { left: 4, right: 4, top: 2, bottom: 2 }
connectionDefaults.content.position
String|ObjectDefines the position of the label relative to the connection path. Can be set to "inline" to position the label along the connection path, or an object with vertical and horizontal properties.
Default: { vertical: "top", horizontal: "right" }
connectionDefaults.content.template
String|FunctionThe template which renders the labels.
The fields which can be used in the template are:
- dataItem - the data item, in case a field has been specified
The static text displayed on the connection.
A function returning a visual element to render for the content of a connection.