Skip to main content

LineStepSeries2D.SnapCrosshairToActualStep Property

Indicates whether the crosshair label displays the actual step value.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public bool SnapCrosshairToActualStep { get; set; }

Property Value

Type Description
Boolean

true if the crosshair label displays the actual step value; otherwise, false.

Remarks

When the SnapCrosshairToActualStep property is set to true, the crosshair label displays the actual step value.

When the SnapCrosshairToActualStep property is set to false, the crosshair label displays the nearest series point data. The Chart Control determines the nearest series point based on the CrosshairOptions.SnapMode value.

SnapCrosshairToActualStep = true
SnapMode = NearestArgument
SnapCrosshairToActualStep = false
SnapMode = NearestArgument
SnapCrosshairToActualStep is set to true SnapCrosshairToActualStep is set to false

The following markup sets the SnapCrosshairToActualStep property to false:

<dxc:ChartControl.Diagram>
    <dxc:XYDiagram2D>
        <dxc:XYDiagram2D.Series>
            <dxc:LineStepSeries2D ArgumentScaleType="DateTime" SnapCrosshairToActualStep="False">
                <dxc:LineStepSeries2D.Points>
                    <dxc:SeriesPoint Argument="1/1/2020" Value="138.7" />
                    <!--...-->
                </dxc:LineStepSeries2D.Points>
            </dxc:LineStepSeries2D>
        </dxc:XYDiagram2D.Series>
    </dxc:XYDiagram2D>
</dxc:ChartControl.Diagram>
See Also