Skip to content

Interface: BinOptions ​

Defined in: packages/core/src/specs.ts:13

Options for bin. Set at most one of step, bins or interval.

Properties ​

PropertyTypeDescription
bins?numberBin count across the extent. Default 20 when neither step nor interval is set.
clamp?booleanKeep out-of-range values in the edge bins.
extent?readonly [number, number]Bin range; defaults to the data's min and max.
interval?TimeIntervalCalendar interval for date columns (UTC).
scale?"linear" | "log"log bins evenly in log10 space.
step?numberLinear bin width in data units.

Released under the MIT License.