/** * Encoded charts that show a distribution or a running total: histogram and * waterfall. Bins snap to clean steps; a waterfall closes with a computed total. */ import type { ChartInput, EncodedChart, KindRender } from './chart-types.js'; /** * Bin edges on clean steps (1, 2, 2.5 or 5 × 10ⁿ). `bins` is a target count: * the clean step whose bin count lands closest to it wins, the wider step on a * tie. Deterministic for a given input. */ export declare function histogramEdges(samples: readonly number[], bins: number): number[]; /** Samples per bin; each bin is [a, b) and the last is closed. */ export declare function histogramCounts(samples: readonly number[], edges: readonly number[]): number[]; export declare function histogramChart(input: ChartInput, encoded: EncodedChart): KindRender; /** Running total of signed changes, closed by a computed total bar. */ export declare function waterfallChart(input: ChartInput, encoded: EncodedChart): KindRender; //# sourceMappingURL=chart-kinds-histogram-waterfall.d.ts.map