Skip to content

Home > d3-blueprint > D3Selection

D3Selection type

A generic D3 selection accepted across the public API. The generics are any so callers can pass results of d3.select(...) / d3.selectAll(...) directly without casting through d3-selection's invariant generics (e.g. Selection<SVGGElement, unknown, null, undefined> returned by d3.select(svgElement) unifies with this type).

Signature:

typescript
export type D3Selection = Selection<any, any, any, any>;