Skip to main content

AreaStepStackedSeries2D.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 SnapCrosshairToActualStep to false:

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