Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TrendLine Class

Represents an individual Trend Line.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.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