Skip to content

Function: addHist2d()

ts
function addHist2d(plot, opts): Hist2dHandle;

Defined in: stats/charts.ts:231

A 2-D histogram (matplotlib's hist2d): rectangular binning of a point cloud, drawn as a heatmap. Reach for addHexbin instead when the cloud is dense — hexagons have no preferred direction, so they read density more evenly.

Parameters

ParameterType
plotPlot
optsHist2dOptions

Returns

Hist2dHandle

MIT licensed. WebGL2 required.