Skip to content

Home > d3-blueprint > LayerOptions

LayerOptions interface

Options accepted by the Layer constructor.

Signature:

typescript
export interface LayerOptions<TData>

Properties

Property

Modifiers

Type

Description

dataBind

(selection: D3Selection, data: TData) => D3Selection

Binds data to the layer's selection. Must return a D3 data-join.

events?

LayerEventMap<TData>

(Optional) Initial lifecycle event handlers.

insert

(selection: D3Selection) => D3Selection

Appends new DOM elements for entering data points.