charturbo - v0.1.0
    Preparing search index...

    Interface ScatterTrendlineFit

    Least-squares fit of one drawn trendline.

    interface ScatterTrendlineFit {
        coefficients: number[];
        color: RgbaTuple;
        dash: number[];
        expression: string;
        order?: number;
        points: number;
        r2: number;
        series: number;
        skipped: number;
        type: ScatterTrendlineType;
        width: number;
    }
    Index
    coefficients: number[]

    Coefficients in data units: linear [a, b] (y = a + bx), exponential [a, b] (y = a·e^(bx)), logarithmic [a, b] (y = a + b·ln(x)), polynomial [c0, .., ck] (ascending powers of x). Empty when the series has too few distinct points to fit

    color: RgbaTuple
    dash: number[]
    expression: string

    Equation, e.g. y = 1.234x + 5.6 (empty without a fit)

    order?: number

    Polynomial order (polynomial fits only)

    points: number

    Points fitted

    r2: number

    1 - SS_res / SS_tot of the curve against the original y of the fitted points (NaN without a fit or when every y is equal)

    series: number

    Series id fitted

    skipped: number

    Finite points outside the model's domain, left out of the fit (y <= 0 exponential, x <= 0 logarithmic)

    width: number