HexbinLayer
Defined in: packages/core/src/scene/types.ts:142
Hexagonally-binned density (mplsoccer's hexbin): the same aggregation
as HeatmapLayer over a hexagonal lattice, which packs more evenly than
a square grid and so shows less axis-aligned banding. Canvas-rendered.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
binsX? | readonly | number | Hexagon columns across the pitch length; the cell size follows from it. | packages/core/src/scene/types.ts:150 |
colorMax? | readonly | string | - | packages/core/src/scene/types.ts:152 |
colorMin? | readonly | string | - | packages/core/src/scene/types.ts:151 |
data | readonly | readonly T[] | - | packages/core/src/scene/types.ts:144 |
stroke? | readonly | string | Stroke colour for hexagon outlines; omitted = no outlines. | packages/core/src/scene/types.ts:154 |
strokeWidth? | readonly | number | - | packages/core/src/scene/types.ts:155 |
type | readonly | "hexbin" | - | packages/core/src/scene/types.ts:143 |
weight? | readonly | Accessor<T, number> | Omitted = count of points per hexagon; provided = sum of this per hexagon. | packages/core/src/scene/types.ts:148 |
x | readonly | Accessor<T, number> | - | packages/core/src/scene/types.ts:145 |
y | readonly | Accessor<T, number> | - | packages/core/src/scene/types.ts:146 |