Home > d3-blueprint > D3Blueprint
D3Blueprint class
Base class for composable D3 charts. Subclass and override lifecycle hooks (initialize, transform, preDraw, postDraw, postTransition).
Signature:
export declare class D3Blueprint<TData = unknown>Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Record<string, D3Blueprint<TData>> | Proxy that provides getter access to attached sub-charts by name. | |
| The root D3 selection this chart is attached to. |
Methods
Method | Modifiers | Description |
|---|---|---|
Attaches a sub-chart instance that will be drawn alongside this chart (legacy). | ||
Creates and attaches a sub-chart from a class and selection. | ||
Gets a config value by name. | ||
Sets a config value by name. | ||
Sets multiple config values. | ||
Defines a new config property. | ||
Tears down the chart, clearing layers and attachments. | ||
Executes the full draw lifecycle. | ||
| Called once during construction. Override to set up layers and configs. | |
Retrieves an existing layer by name. | ||
Creates and registers a new layer. | ||
Removes an event listener. Pass | ||
Registers an event listener. Delegates to | ||
| Called after all layers have drawn (but before transitions complete). | |
| Called after all transitions have completed. | |
| Called before layers are drawn. | |
| Called at the start of | |
Wires a plugin into this chart.
|