SankeyLabelsComponent
Represents the configuration options of the Sankey labels (see example).
Definition
Package:@progress/kendo-angular-charts
Selector:kendo-sankey-labels
Inputs
align?
"left" | "right" | "center"
The alignment of the label.
'left'
color?
string
The color of the label.
font?
string
The font of the label.
margin?
{ left?: number; right?: number }
The margin of the label.
{ left: 8, right: 8 }
The offset applied to the label's position.
{ top: 0, left: 0 }
position?
"inside" | "before" | "after"
The position of the label.
The supported values are:
inside—The label is positioned after the node, except for the nodes at the end of the Sankey, that are placed before the node.before—The label is positioned before the node.after—The label is positioned after the node.
'inside'
stroke?
{ color?: string; width?: number; lineJoin?: "round" | "bevel" | "miter" }
The stroke of the label.
{ width: 1, lineJoin: 'round' }
visible?
boolean
The visibility of the label.
true
Methods
Updates the component fields with the specified values and refreshes the Chart.
Use this method when the configuration values cannot be set through the template.
An object containing the updated input fields.