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

    Interface ColorScaleData

    A <colorScale> conditional format.

    interface ColorScaleData {
        cfvos: CfvoData[];
        colors: string[];
        colorSpecs?: ColorData[];
    }
    Index
    cfvos: CfvoData[]
    colors: string[]

    One entry per colour stop: its rgb, or '' when the stop has none.

    colorSpecs?: ColorData[]

    The full colour of every stop, in stop order, filled only when some stop has a theme, indexed, tint or auto attribute. Stop i uses colorSpecs[i] on write while its rgb equals colors[i]; otherwise colors[i] is written as plain rgb. A stop with neither is written with the default FF638EC6, so the stop count is kept.