ToolTipOptions.ShowForSeries Property
Specifies whether to show a tooltip for a particular series;
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true to show a tooltip; otherwise, false. |
#Property Paths
You can access the ToolTipOptions.ShowForSeries property from the following objects:
Object Type | Path to Show |
---|---|
Chart |
|
#Remarks
Before using the ShowForSeries property, specify a series displayed name via the Series.DisplayName property.
NOTE
Because of specifics Bar and Point series view types, you can see a tooltip for these series only in a legend.
You can also use the ToolTipOptions.ShowForPoints property (to display tooltips for each point) either separately or together with the ShowForSeries property.
The following table shows this property in action.
Show |
Show |
---|---|
![]() |
![]() |
To learn more on how to use tooltips, refer to the Tooltips topic.
#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.