All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SankeyDiagramControl.CustomizeNodeToolTip Event

Occurs before a tooltip is displayed for a node and allows you to format tooltip content.

Namespace: DevExpress.XtraCharts.Sankey

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

Declaration

public event CustomizeSankeyNodeToolTipEventHandler CustomizeNodeToolTip
Public Event CustomizeNodeToolTip As CustomizeSankeyNodeToolTipEventHandler

Event Data

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

Property Description
Content Inherited from CustomizeSankeyToolTipEventArgs.
Node Returns the node whose tooltip is customized.
NodeColor Returns the color of a node whose tooltip is customized.
Title Specifies the tooltip's title. Inherited from CustomizeSankeyToolTipEventArgs.

Remarks

Handle the CustomizeLinkToolTip event to customize tooltips for links.

Example

To format tooltip text for nodes, handle the CustomizeNodeToolTip event and specify the CustomizeSankeyToolTipEventArgs.Title and CustomizeSankeyToolTipEventArgs.Content properties.

private void Form1_Load(object sender, EventArgs e) {
    sankeyDiagramControl1.ToolTipEnabled = DevExpress.Utils.DefaultBoolean.True;
    sankeyDiagramControl1.ToolTipController = new DevExpress.Utils.ToolTipController { 
        ToolTipType = DevExpress.Utils.ToolTipType.Flyout, 
        AllowHtmlText = true 
    };
    sankeyDiagramControl1.CustomizeNodeToolTip += OnCustomizeNodeToolTip;
}
private void OnCustomizeNodeToolTip(object sender, CustomizeSankeyNodeToolTipEventArgs e) {
    e.Title = $"Country: <u>{e.Node.Tag}</u>";
    e.Content = $"{e.Node.TotalWeight:f1}";
}
See Also