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

    Interface ZoneTime

    One zone's time + share.

    Carries pond's canonical bin edges (start / end) so the array feeds @pond-ts/charts (<BarChart bins> / stacksFromBins) with no mapping step — the same { start, end, …aggregates } shape core's byColumn returns, and the same guarantee core enforces: finite, with end > start. (An infinite edge blows up a chart's axis domain; a zero-width bin is what byColumn itself rejects as unrepresentable.)

    interface ZoneTime {
        end: number;
        fraction: number;
        label: string;
        openEnded: boolean;
        seconds: number;
        start: number;
        zone: number;
    }
    Index

    Properties

    end: number

    Upper edge — always finite, always > start. On a closed band this is the real edge. The open-ended band has none, so end is a drawable stand-in, never Infinity: wide enough to cover the highest value observed, and at least as wide as the band below. Treat it as a drawing bound, not as data — it can exceed anything actually recorded (and a device's out-of-range sentinel sample will stretch it).

    fraction: number

    Share of total in-zone time, [0, 1].

    label: string
    openEnded: boolean

    true on the open-ended top band, whose real upper edge is unbounded — end is a drawable stand-in. Label it "{start}+" rather than as a range.

    seconds: number
    start: number

    Lower edge, in the value axis (watts / bpm / m·s⁻¹). Bands are inclusive-upper ((start, end]), so this edge belongs to the band below — except on Z1, whose floor is inclusive.

    zone: number

    1-based zone number (Z1 = the lowest band).