PlotProps
Defined in: react/Plot.tsx:46
Properties
Section titled “Properties”aspectRatio?
Section titled “aspectRatio?”
optionalaspectRatio?: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.
backend?
Section titled “backend?”
optionalbackend?:BackendType
Defined in: react/Plot.tsx:54
children?
Section titled “children?”
optionalchildren?:ReactNode
Defined in: react/Plot.tsx:63
className?
Section titled “className?”
optionalclassName?:string
Defined in: react/Plot.tsx:61
height?
Section titled “height?”
optionalheight?:number
Defined in: react/Plot.tsx:50
Fixed height (px). Omit (with width) for responsive sizing.
onReady?
Section titled “onReady?”
optionalonReady?: (engine) =>void
Defined in: react/Plot.tsx:60
Called once the engine is built, its layers applied, and the first frame drawn.
Parameters
Section titled “Parameters”engine
Section titled “engine”Returns
Section titled “Returns”void
onTransform?
Section titled “onTransform?”
optionalonTransform?: (t) =>void
Defined in: react/Plot.tsx:58
Fires after each pan/zoom with the current view transform (k, x, y).
Parameters
Section titled “Parameters”number
number
number
Returns
Section titled “Returns”void
style?
Section titled “style?”
optionalstyle?:CSSProperties
Defined in: react/Plot.tsx:62
width?
Section titled “width?”
optionalwidth?:number
Defined in: react/Plot.tsx:48
Fixed width (px). Omit (with height) for responsive sizing.
optionalzoom?: [number,number]
Defined in: react/Plot.tsx:56
Enable scroll-to-zoom / drag-to-pan, clamped to this [min, max] scale extent.