This example demonstrates how to enable and customize chart tooltips at runtime.
To enable tooltips, set the ChartControl.ToolTipEnabled property to true
.
Specify the tooltip display text in the ToolTipPointPattern property.
The following example shows tree series with different tooltip patterns:
-
unboundSeries
- a simple unbound series.The series shows tooltips with the following pattern:
Line Series: {A}:{V}
-
unboundSeriesWithTag
- an unbound series with the specified SeriesPoint.Tag property for each data point.The series shows tooltips with the pattern that references
Tag
values:{A}: {V} ({Test})
-
boundSeries
- a series that is bound to the data source.The series shows tooltips with the pattern that references data source field values:
{A}: {V} ({Comment})