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

    Function stacksFromBins

    • Build a StackedBarSeries from byColumn bin records — the array of { start, end, …aggregates } a value-band aggregation returns (series.byColumn('power', { width: 20 }, { seconds: { from: 'dt', using: 'sum' } })). columns names the aggregate field(s) to draw as segments (['seconds'] for a plain distribution; several for a stacked value-band histogram).

      By default each bin keeps its real numeric [start, end] edges — a true value axis (power W, risk %). Pass { ordinal: true } for uniform unit slots ([i, i+1]) when the bins are categories whose numeric width shouldn't distort the layout (heart-rate zones); label them with <YAxis ticks>.

      A missing / non-finite aggregate reads as a gap (NaN).

      Parameters

      Returns StackedBarSeries