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
| Parameter | Type |
|---|---|
edges | ArrayLike<number> |
v | number |
Returns
number