Skip to main content

TrendLine Class

Represents an individual Trend Line.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public class TrendLine :
    FinancialIndicator

Remarks

Objects of the TrendLine type are contained in the IndicatorCollection returned by the XYSeries2D.Indicators property.

To create a Trend Line, it is necessary to specify FinancialIndicator.Argument1 and FinancialIndicator.ValueLevel1 properties for the first point, and FinancialIndicator.Argument2 and FinancialIndicator.ValueLevel2 properties for the second point.

The chart automatically extrapolates the Trend Line to infinity (beyond the point’s argument in the positive direction of the axis). You can also extrapolate the Trend Line to negative infinity or limit the Trend Line to its points.

Set the TrendLine.ExtrapolateToInfinity property to false to limit the Trend Line to the point.

Set the TrendLine.ExtrapolateToNegativeInfinity property to true to extrapolate the Trend Line to negative infinity.

For more information, see Trend Lines.

Implements

See Also