Skip to content

Function: createHeatmapAxis() ​

ts
function createHeatmapAxis(edges, n?): HeatmapAxis | undefined;

Experimental

Validate the first n + 1 edges and build a HeatmapAxis. Returns undefined for fewer than one cell, missing / non-finite edges, or edges that are not strictly monotonic.

Parameters ​

ParameterType
edgesArrayLike<number>
nnumber

Returns ​

HeatmapAxis | undefined

Released under the MIT License.