@jsfkit/types
    Preparing search index...

    Type Alias CFColorScaleRule

    CFColorScaleRule: CFRuleBase & {
        colorScale: CFColorStop[];
        formula?: string;
        type: "colorScale";
    }

    Format cells with a background colour interpolated between two or three colour stops, according to where each cell's value falls in the range.

    Type Declaration

    • colorScale: CFColorStop[]

      Colour stops in ascending threshold order (at least two). Two stops set the colours at the low and high ends of the range. Three stops adds a midpoint. The array's length is left unlimited to allow more stops to be supported in the future, but current implementations only support two or three stops.

    • Optionalformula?: string

      A condition, as a formula, that limits which cells show the colour scale. The colour scale is shown only in cells where the formula returns a nonzero value. When absent, the colour scale is shown in every cell of ref. Relative references are resolved as described in CFRuleBase.ref.

      The formula should not include a leading =.

    • type: "colorScale"

      Type discriminator.