Skip to main content
All docs
V25.1
  • TrendLine.ExtrapolateToNegativeInfinity Property

    Specifies whether the Trend Line is extrapolated to negative infinity.

    Namespace: DevExpress.XtraCharts

    Assembly: DevExpress.XtraCharts.v25.1.dll

    NuGet Package: DevExpress.Charts

    Declaration

    [XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
    public bool ExtrapolateToNegativeInfinity { get; set; }

    Property Value

    Type Description
    Boolean

    true to extrapolate the Trend Line to negative infinity; otherwise, false.

    Remarks

    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 ExtrapolateToNegativeInfinity property to true to extrapolate the Trend Line to negative infinity.

    Refer to the following topic for more information: Trend Lines.

    Example

    The image below illustrates the stock chart with the ExtrapolateToNegativeInfinity property set to true. The chart extrapolates the current Trend Line beyond the start and end point’s arguments.

    Stock chart with the Trend Line extrapolated to negative infinity

    Refer to the following example for information on how to implement a Trend Line to the stock chart at runtime:

    View Example: How to add a Trend Line to a Chart

    See Also