Documentation menu

Interface

MarkData

Columns of Mark.setData / append; all have the same length.

Properties

NameTypeDescription
xColumn

Numbers, UTC ms or category numbers (values for horizontal bars).

yColumn

Values, NaN for a gap (category numbers for horizontal bars).

y0?Column

Lower edge of areas, start of bars.

value?Column

Values colored by the color scale (cells, bars, scatter).

size?Float32Array | number[]

Scatter diameters, CSS px.

color?(string | null)[] | Uint32Array

Per-point CSS colors (null: the mark color) or 0xRRGGBBAA.

step?('delta' | 'subtotal' | 'total')[]
label?(string | null)[]

Per-point texts (scatter labels; replaces value texts).

Declaration

export interface MarkData {
    x: Column;
    y: Column;
    y0?: Column;
    value?: Column;
    size?: Float32Array | number[];
    color?: (string | null)[] | Uint32Array;
    step?: ('delta' | 'subtotal' | 'total')[];
    label?: (string | null)[];
}

Used by

Mark