Skip to content

grafit-charts


Function: binIndexOf()

binIndexOf(value, edges, options?): number

The bin a value belongs to, or -1 when it belongs to none. Edge values go left by default ([x0, x1)), with the outermost bin closed on both sides so the maximum of the data is never lost.

Parameters

value

number

edges

BinEdge[]

options?

BinningOptions = {}

Returns

number