Skip to content

charton API


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

Interface: PlusButtonEvent ​

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

Payload of plus:click: where the user asked to act.

Properties ​

pane ​

pane: number

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


price ​

price: number

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

The price at the button, snapped to the tick size (as dragged trade lines are).


scale ​

scale: string

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

Id of the price scale the price was read from (the pane's main scale).


x ​

x: number

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

The button's centre in chart-root css px, e.g. to anchor a menu.


y ​

y: number

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