HeatmapLayer
Defined in: packages/core/src/scene/types.ts:93
Binned aggregate marks: divides the pitch into a binsX x binsY grid
and colors each cell by point count (default) or, if weight is given,
the sum of that weight per cell (e.g. total xG per zone). Rendered via
the Canvas path (PRD §8.1) — SVG's per-element DOM cost doesn't scale to
dense raster data the way a handful of fillRect calls does.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
binsX? | readonly | number | - | packages/core/src/scene/types.ts:100 |
binsY? | readonly | number | - | packages/core/src/scene/types.ts:101 |
colorMax? | readonly | string | Color at the highest bin value in the scene's data. | packages/core/src/scene/types.ts:105 |
colorMin? | readonly | string | Color at the lowest bin value in the scene's data. | packages/core/src/scene/types.ts:103 |
data | readonly | readonly T[] | - | packages/core/src/scene/types.ts:95 |
type | readonly | "heatmap" | - | packages/core/src/scene/types.ts:94 |
weight? | readonly | Accessor<T, number> | Omitted = count of points per bin; provided = sum of this per bin. | packages/core/src/scene/types.ts:99 |
x | readonly | Accessor<T, number> | - | packages/core/src/scene/types.ts:96 |
y | readonly | Accessor<T, number> | - | packages/core/src/scene/types.ts:97 |