Skip to content

Interface: BinSpec<F> ​

Defined in: packages/core/src/types.ts:49

Numeric binning. Exactly one of step, bins or interval decides the bin width.

Type Parameters ​

Type ParameterDefault type
F extends stringstring

Properties ​

PropertyModifierTypeDescription
bins?readonlynumberNumber of bins across the extent (linear or log).
clamp?readonlybooleanPut out-of-range values in the first or last bin instead of dropping them from the chart.
extent?readonlyreadonly [number, number]Bin range. Defaults to the data's min and max. Values outside are out of range.
fieldreadonlyF-
interval?readonlyTimeIntervalCalendar interval for date columns (UTC).
kindreadonly"bin"-
scale?readonly"linear" | "log"log bins evenly in log10 space; values <= 0 are treated as missing.
step?readonlynumberLinear bin width, in data units.

Released under the MIT License.