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 Parameter | Default type |
|---|---|
F extends string | string |
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
bins? | readonly | number | Number of bins across the extent (linear or log). |
clamp? | readonly | boolean | Put out-of-range values in the first or last bin instead of dropping them from the chart. |
extent? | readonly | readonly [number, number] | Bin range. Defaults to the data's min and max. Values outside are out of range. |
field | readonly | F | - |
interval? | readonly | TimeInterval | Calendar interval for date columns (UTC). |
kind | readonly | "bin" | - |
scale? | readonly | "linear" | "log" | log bins evenly in log10 space; values <= 0 are treated as missing. |
step? | readonly | number | Linear bin width, in data units. |