Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SankeyDiagramControl.CustomizeNode Event

Occurs for each node and allows you to customize a specific node based on a specified condition.

Namespace: DevExpress.XtraCharts.Sankey

Assembly: DevExpress.XtraCharts.v24.2.UI.dll

NuGet Package: DevExpress.Win.Charts

#Declaration

public event CustomizeSankeyNodeEventHandler CustomizeNode

#Event Data

The CustomizeNode event's data class is CustomizeSankeyNodeEventArgs. The following properties provide information specific to this event:

Property Description
Label Returns a node label to be customized.
Node Returns a node to be customized.
NodeColor Returns a node color.

#Remarks

The following code customizes label settings for the “France” node:

sankeyDiagramControl1.CustomizeNode += OnCustomizeNode;
//...
private void OnCustomizeNode(object sender, CustomizeSankeyNodeEventArgs e) {
    if (e.Label.Text == "France" && e.Node.Level == 0) {
        e.Label.Font = SystemFonts.DefaultFont;
        e.Label.Text = "France (Source)";
    }
}
See Also