New to Kendo UI for Angular? Start a free 30-day trial
Customization
You can customize the Kendo UI for Angular Sankey diagram in two ways:
- By configuring the defaults for all elements of the Sankey diagram.
- By using the
dataproperty to apply the desired styles only to specific instances of the Sankey diagram elements.
Customizing the Sankey Diagram Elements
You can configure the labels, nodes, and links displayed on the Sankey diagram by using the following inputs:
links—provides options to set thecolorTypeof the link to eitherstatic,source, ortarget. It also allows you to control the opacity and highlighting of the link.nodes—provides options to modify the color, opacity, offset, padding, and width of the node.labels—provides options to modify the font, color, opacity, alignment, padding, margin, border, and offset of the label. It also allows you to set thevisibleproperty to show or hide the label.
The following demo shows how to set the links, nodes, and labels options.
Change Theme
Theme
Loading ...
Customizing Element Instances
As the properties set to data take precedence, using the data property allows you to target select element instances and apply a specific configuration only to these instances.
The demo below shows how to configure and use the data prop to:
- Change the color of the first link.
- Change the
offsetof the node with the label textmobile.
Change Theme
Theme
Loading ...