Skip to main content

PlotRect

type PlotRect = {
bottom: number;
left: number;
right: number;
top: number;
};

Source: types/src/index.ts:1163

The chart's plot area in logical px relative to the chart element's top-left: the candles and everything drawn over them, with the price and time axis strips excluded.

This is the rect to test a floating UI against, and it is deliberately not the element's own box — the element includes the axis strips, so measuring it overstates the room beside anything near an edge.

Properties​

bottom​

bottom: number;

Source: types/src/index.ts:1167


left​

left: number;

Source: types/src/index.ts:1164


right: number;

Source: types/src/index.ts:1166


top​

top: number;

Source: types/src/index.ts:1165