Skip to content

Function: heatmapCellIndex() ​

ts
function heatmapCellIndex(edges, v): number;

Experimental

Cell index of data value v for edges (both directions): −1 outside [first, last], for NaN, or for invalid edges. Cells are half-open in the edges' own direction, [e_i, e_{i+1}), and the last edge belongs to the last cell.

Parameters ​

ParameterType
edgesArrayLike<number>
vnumber

Returns ​

number

Released under the MIT License.