PitchKit
API Reference@pitchkit/reactFunctions

KDE()

function KDE<T>(__namedParameters): Element;

Defined in: packages/react/src/KDE.tsx:21

Client-only <canvas> kernel density estimate — mplsoccer's kdeplot. Unlike the binned layers, each point spreads influence over its neighbourhood, so the result is a continuous surface rather than a grid of cells, and low-density areas fade out instead of being filled with colorMin.

bandwidth controls the smoothing radius in provider units; leave it unset to let Silverman's rule of thumb pick one per axis from the data's own spread.

Type Parameters

Type Parameter
T

Parameters

ParameterType
__namedParametersKDEProps<T>

Returns

Element

On this page