Skip to main content
A newer version of this page is available. .

HintBase.ShowMode Property

Gets or sets a gesture on which the chart shows hints.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public HintShowMode ShowMode { get; set; }

Property Value

Type Description
HintShowMode

The value that specifies the gesture on which the chart shows hints.

Available values:

Name Description
Default

The default action that invokes a hint (OnTap for Pie Chart, OnLongPress for Chart).

OnLongPress

The Pie Chart displays a hint on a long press gesture.

OnTap

The Pie Chart displays a hint when an end user taps on the item.

Example

This example demonstrates how to configure the chart’s Hint as the following image shows:

Hint Sample

<dxc:ChartView>
    <dxc:ChartView.Hint>
        <dxc:Hint ShowMode="OnTap">
            <dxc:Hint.Behavior>
                <dxc:CrosshairHintBehavior GroupHeaderVisible="false"/>
            </dxc:Hint.Behavior>
        </dxc:Hint>
    </dxc:ChartView.Hint>
    <dxc:ChartView.AxisY>
        <dxc:NumericAxisY AlwaysShowZeroLevel="false">
            <dxc:NumericAxisY.HintOptions>
                <dxc:AxisHintOptions LineVisible="false"
                                     LabelVisible="false"/>
            </dxc:NumericAxisY.HintOptions>
        </dxc:NumericAxisY>
    </dxc:ChartView.AxisY>
    <dxc:ChartView.Series>
        <dxc:LineSeries DisplayName="Stock">
            <dxc:LineSeries.Data>
                <data:StockSeriesData ItemsSource="{Binding Prices}"/>
            </dxc:LineSeries.Data>
            <dxc:LineSeries.HintOptions>
                <dxc:SeriesCrosshairOptions PointTextPattern="{}{S}: ${V$.2}"/>
            </dxc:LineSeries.HintOptions>
        </dxc:LineSeries>
    </dxc:ChartView.Series>
</dxc:ChartView>

The table below lists classes and members the example above uses:

Symbol

Description

ChartView.Hint

Gets or sets the chart hints.

Hint

Configures the hints the ChartView displays.

Hint.Behavior

Gets or sets the behavior of the hint.

CrosshairHintBehavior

Defines the crosshair hint behavior.

AxisBase.HintOptions

Gets or sets an object that configures how the axis interacts with the Hint.

AxisHintOptions

SeriesBase.HintOptions

SeriesCrosshairOptions

See Also