Back to Devexpress

ChartBaseView.ShowHint(Int32, Int32) Method

maui-devexpress-dot-maui-dot-charts-dot-chartbaseview-dot-showhint-x28-system-dot-int32-system-dot-int32-x29.md

latest1.8 KB
Original Source

ChartBaseView.ShowHint(Int32, Int32) Method

Shows a hint for a series point with the specified index of a series with the given index.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public void ShowHint(
    int seriesIndex,
    int pointIndex
)

Parameters

NameTypeDescription
seriesIndexInt32

The zero-based index of a series for whose point the chart should show a hint.

| | pointIndex | Int32 |

The zero-based index of a point for which the chart should show a hint.

|

Example

In this example, a hint with preset options appears when a user taps a bubble.

  1. Use the FilmData object collection as the data source for the chart to show the highest grossing films as bubbles.

  2. Subscribe to the SelectionChanged event and enable hints for the chart.

  3. In the event handler, use the DataSourceKey.DataObject property to access an object that corresponds with the selected bubble and cast it to the type of the data source object ( FilmData ). Call the ShowHint method to show a hint for the selected bubble and specify the tooltip text pattern.

See Also

ChartBaseView Class

ChartBaseView Members

DevExpress.Maui.Charts Namespace