Skip to content

Function: d3pNearestIndex() ​

ts
function d3pNearestIndex(data, value): number;

Defined in: core/probe.ts:62

Index of the point of data closest to value: bisection on sorted numbers and dates, equality for categories.

Parameters ​

data ​

readonly D3PPoint[]

value ​

D3PDomainValue

Returns ​

number