Skip to main content

LineSeriesView.InterpolationMode Property

Specifies the line view’s interpolation mode that defines how to connect series points.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(InterpolationMode.Line, Handler = "ViewTypeChanged")]
public InterpolationMode InterpolationMode { get; set; }

Property Value

Type Description
InterpolationMode

A value that defines the interpolation mode applied to the series view.

Available values:

Name Description Image
Line

Series points are connected by lines.

Line interpolation mode

Step

Series points are connected by step lines.

Step interpolation mode

Remarks

The following example shows how to use the InterpolationMode property to draw a Step Line chart:

Step line chart

<Charts:CartesianChart x:Name="chart">
    <Charts:CartesianChart.Series>
        <Charts:Series x:Name="seriesDevAVNorth">
            <Charts:Series.View>
                <Charts:LineSeriesView InterpolationMode="Step"/>
            </Charts:Series.View>
            <Charts:Series.Data>
                <Charts:DataSource PointSource="{Binding DataPoints}"
                                   ArgumentDataMember="Date" 
                                   ValueDataMember="Total"/>
            </Charts:Series.Data>
        </Charts:Series>
    </Charts:CartesianChart.Series>
</Charts:CartesianChart>
See Also