Skip to content

charton API


charton API / @chart-on/core / index / ViewportBounds

Interface: ViewportBounds ​

Defined in: packages/core/src/chart.ts:818

Where the view may go; see chart.setViewportBounds. Times are unix seconds.

Properties ​

keepOnContextChange? ​

optional keepOnContextChange?: boolean

Defined in: packages/core/src/chart.ts:824

Keep the bounds when setSymbol changes the symbol or interval. Default false.


price? ​

optional price?: object

Defined in: packages/core/src/chart.ts:822

One price scale (default: the main pane's right one) shows only prices from low to high.

high? ​

optional high?: number

low? ​

optional low?: number

pane? ​

optional pane?: number

scale? ​

optional scale?: string


time? ​

optional time?: object

Defined in: packages/core/src/chart.ts:820

The plot shows only bars from from to to; either end may be left open.

from? ​

optional from?: number

to? ​

optional to?: number