Skip to content

Documentation / @finchart/core / index / ViewportControl

Interface: ViewportControl ​

Defined in: packages/core/src/plot/capabilities.ts:182

Can set the x range in view, in data x.

Pairs with PlotEventSource — listen via xDomainChange, set via this. With just those two, syncing two charts doesn't need all of Plot.

Consumers: syncX

Methods ​

setVisibleRange() ​

setVisibleRange(fromX, toX): void

Defined in: packages/core/src/plot/capabilities.ts:183

Parameters ​

fromX ​

number

toX ​

number

Returns ​

void