Skip to main content
Tables are pinned to the pane, not to bars. They stay in their corner while you scroll and zoom the chart, like Pine’s table.new(position.top_right, …). Tables paint on top of everything else in the pane.

Cells

cells is an array of rows; each row is an array of cells. A cell is a string, a number, or an object:

Alignment

Set align on the table to align every cell, or on a single cell to override it. Values are 'left' (default), 'center' and 'right'. Pine’s text.align_left, text.align_center and text.align_right spellings also work.

Position

Pine’s underscore spelling, such as 'top_right', works too.

Example: centered stats table

The whole table is centered; the last value cell overrides that with align: 'right'.

Limits

Up to 20 tables per script, each with up to 100 rows and 20 columns.