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

    Interface SelectInfo

    One selection — what RowLayer.hitTest returns and onSelect reports. Selection identity is the series id, not the sample: key/value are click provenance (the nearest sample under the pointer, informational); equality, dedup, and the controlled echo all key on id. Because id is a stable series identity — distinct from the as theme role, which can repeat — a selection survives a streaming data update where a sample key would go stale. Only layers that carry an id are selectable (see RowLayer.hitTest).

    interface SelectInfo {
        color: string;
        id: string;
        key: number;
        label: string;
        mark?: string;
        value: number;
    }
    Index

    Properties

    color: string

    The mark's resolved style colour.

    id: string

    The series identity — the layer's id prop. The selection / dedup / controlled-echo key; stable across data updates (unlike key).

    key: number

    The clicked sample's key as epoch ms (its event's begin) — click provenance, informational. NOT the selection identity (that is id).

    label: string

    Display label (as ?? column ?? id) — labels the selection in a readout.

    mark?: string

    An optional stable per-mark identity within the layer — a category's column name on the categorical axis, where every bar shares the layer's id but each column needs its own stable handle. When present, the highlight match + controlled selected echo key on (id, mark) instead of the sample key, so a pinned selection survives a column reorder / data update (the slot index is not stable; the column name is). undefined for marks whose sample key is already their identity (a time / value bar).

    value: number

    The clicked sample's value (the plotted column) — provenance.