@pond-ts/charts API Reference
    Preparing search index...

    Interface ColorEncoding

    Per-point colour encoding — { column, range }: map the column's finite extent linearly onto a two-stop colour ramp [atMin, atMax] (interpolated in sRGB). A point whose colour column is non-finite falls back to the base colour (the single styling channel — theme.scatter[as].color).

    Omitted ⇒ the base colour for every point. The range stops must be CSS hex (#rgb / #rrggbb); a non-hex stop disables interpolation for that point (falls back to the base colour) rather than guessing.

    interface ColorEncoding {
        column: string;
        range: readonly [string, string];
    }
    Index

    Properties

    Properties

    column: string

    Numeric column whose value drives each point's colour.

    range: readonly [string, string]

    Two-stop colour ramp, [atColumnMin, atColumnMax] — CSS hex.