Skip to content

PlotProps

Defined in: react/Plot.tsx:46

optional aspectRatio?: number

Defined in: react/Plot.tsx:53

width ÷ height. When set, the plot fills its parent’s width and keeps this ratio (the host resizes the engine in place). Omit width/height/aspectRatio to fill the parent box.


optional backend?: BackendType

Defined in: react/Plot.tsx:54


optional children?: ReactNode

Defined in: react/Plot.tsx:63


optional className?: string

Defined in: react/Plot.tsx:61


optional height?: number

Defined in: react/Plot.tsx:50

Fixed height (px). Omit (with width) for responsive sizing.


optional onReady?: (engine) => void

Defined in: react/Plot.tsx:60

Called once the engine is built, its layers applied, and the first frame drawn.

Plot

void


optional onTransform?: (t) => void

Defined in: react/Plot.tsx:58

Fires after each pan/zoom with the current view transform (k, x, y).

number

number

number

void


optional style?: CSSProperties

Defined in: react/Plot.tsx:62


optional width?: number

Defined in: react/Plot.tsx:48

Fixed width (px). Omit (with height) for responsive sizing.


optional zoom?: [number, number]

Defined in: react/Plot.tsx:56

Enable scroll-to-zoom / drag-to-pan, clamped to this [min, max] scale extent.