Skip to content

Function: sampleHeatmap() ​

ts
function sampleHeatmap(data, x, y, transform?): number;

Experimental

The value the shader colors at data point (x, y) (linear data coordinates), or NaN where the fragment is transparent: outside the edges, on a non-finite cell, in a gap, or for invalid data. transform only matters for gaps (px per data unit); default identity.

Parameters ​

ParameterTypeDefault value
dataHeatmapSampleInputundefined
xnumberundefined
ynumberundefined
transformDataTransformIDENTITY_TRANSFORM

Returns ​

number

Released under the MIT License.