modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface TrendlineData

    A series c:trendline. Written for every chart type except pie, doughnut and radar, which drop it.

    interface TrendlineData {
        backward?: number | null;
        displayEq?: boolean;
        displayRSqr?: boolean;
        forward?: number | null;
        order?: number | null;
        period?: number | null;
        trendType: TrendlineType;
    }
    Index
    backward?: number | null

    Periods to forecast backward.

    displayEq?: boolean

    Show the trendline's equation on the chart.

    displayRSqr?: boolean

    Show the R-squared value on the chart.

    forward?: number | null

    Periods to forecast forward.

    order?: number | null

    Polynomial order, 2 to 6; validateChartData checks it on the top-level chart's series.

    period?: number | null

    Moving-average period, 2 or more; validateChartData checks it on the top-level chart's series.

    trendType: TrendlineType