Series.ToolTipSeriesTemplate Property
Gets or sets the template that defines the presentation of the tooltip for this series.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Examples
This example demonstrates how to change the appearance of a series tooltip via its template.
To do this, you need to create a DataTemplate object that specifies the appearance of series tooltips and assign it to the Series.ToolTipSeriesTemplate property. In this example, this has been done for the first series.
Note that before tooltip customization, you need to set the ChartControl.ToolTipEnabled and ToolTipOptions.ShowForSeries properties to true to show the tooltip for a series.
It is also necessary to specify a display name for each series displayed on the tooltip via the Series.DisplayName property.