Version

Adding a Tooltip

Purpose

This topic explains, with code examples, how to add a tooltip in XamSparkline™ control.

Required background

The following table lists the topics required as a prerequisite to understanding this topic.

Topic Purpose

Overview about the control and other related topics.

Explains about various configurations that can be made with Sparkline control.

In this topic

This topic contains the following sections:

Adding a Tooltip

Overview

The tooltip is added by setting the ToolTipVisibility property. If this property is set to visible, the tooltip displays the following default values:

  • The first data point value.

  • The last data point value.

  • The highest data point value.

  • The lowest data point value.

Sparkline Visual Elements 7.png

By default (if no customization settings have been applied) the tooltip displays as the four values listed above, first, last, highest and lowest data points. For details about configuring XamSparkline tooltips, refer to the Configuring the Tooltip topic.

Property settings

The following table maps the Sparkline Tooltip to property settings.

In order to: Use this property: And set it to:

Enable the Tooltip

ToolTipVisibility

Visible

Example

The screenshot in the Overview text block demonstrates how the Sparkline Tooltip looks as a result of the following settings:

Property Value

Visible

Code

In XAML:

<ig:XamSparkline ToolTipVisibility="Visible" />

In C#:

this.XamSparkline1.ToolTipVisibility = System.Windows.Visibility.Visible;

In Visual Basic:

Me.XamSparkline1.ToolTipVisibility = System.Windows.Visibility.Visible

Related Content

The following topics provide additional information related to this topic.

Topic Purpose

This topic provides an overview of the XamSparkline control, its benefits, and the supported chart types.

This topic provides an overview of the possible ways to configure the XamSparkline control. Links to the detailed configurations (available in separate topics) are provided as well.

This topic explains, with code examples, how to configure and customize a tooltip in a XamSparkline .

This topic explains the featured properties of the XamSparkline control.