Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to customize the appearance of a series tooltip

$
0
0

This example demonstrates how to change the appearance of a series tooltip via its template.

To do this, you need to create a System.Windows.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 the tooltip customization, you need to set the ChartControl.ToolTipEnabled and ToolTipOptions.ShowForSeries properties to trueto 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.


Question Comments

Added By: Rajib Banerjee 4 at: 1/11/2016 3:00:04 PM    

If CrosshairEnabled is set to False, Tooltip is not visible. Please modify the example accordingly.


Viewing all articles
Browse latest Browse all 7205

Trending Articles