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

    Interface StackedBarSeries

    A chart-ready view of a stacked / histogram bar series — the multi-segment generalization of BarSeries. Each of the length bins spans [begin[i], end[i]] on the bin axis (time ms, a value, or a band edge) and carries one value per group (a stack segment). groups lists the segment identities bottom → top; values is a flat length × groups.length grid in row-major order, so bin b's segment g is values[b * groups.length + g].

    A single-series bar (the BarSeries case) is just groups.length === 1. Missing / non-finite segment values are NaN — the gap signal a stack skips (no segment, and it contributes nothing to the running total), the same Number.isFinite contract as BarSeries. Segment values are assumed non-negative (counts / durations); a negative value is treated as a gap (diverging stacks are out of scope — see the histogram guide).

    The bin axis is x for a vertical histogram (bars grow up) and y for a horizontal one (bars grow right); the same grid drives both — the draw layer transposes by orientation, the data does not change.

    interface StackedBarSeries {
        begin: Float64Array;
        end: Float64Array;
        groups: readonly string[];
        length: number;
        marks?: readonly string[];
        values: Float64Array;
    }
    Index

    Properties

    begin: Float64Array
    end: Float64Array
    groups: readonly string[]
    length: number
    marks?: readonly string[]

    Optional stable per-bin identitymarks[b] names bin b (a category's column name on the categorical axis). When present, the draw / hit-test / selection key on this name instead of the bin's begin slot index, so a pinned selection survives a column reorder (the slot index is not stable). undefined for a time / value series whose begin is already stable.

    values: Float64Array