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
Declaration
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