table.cell
Sets the text and style of a cell (column and row start at 0). width/height are percent of the pane (0 = fit the text).
table.cell(table_id: table, column: int, row: int, text: string = "", width: int/float = 0, height: int/float = 0, text_color: color = na, text_halign: string = "center", text_valign: string = "center", text_size: string = "normal", bgcolor: color = na, tooltip: string = na, text_font_family: string = na, text_formatting: int = na)
Parameters
table_idtable: The table's handle (from table.new); na or a deleted table does nothing.columnint: Column of the cell, from 0. Outside the table the script stops with a runtime error.rowint: Row of the cell, from 0. Outside the table the script stops with a runtime error.textstring: The cell text (default none).widthint/float: Width in percent of the pane; 0 (default) fits the text.heightint/float: Height in percent of the pane; 0 (default) fits the text.text_colorcolor: na = the chart text colortext_halignstring: text.align_left, align_center or align_righttext_valignstring: text.align_top, align_center or align_bottomtext_sizestring: size.*bgcolorcolor: Cell background (default none).tooltipstring: Accepted for compatibility; tooltips are not shown yet.text_font_familystring: Accepted for scripts from Pine and ignored: text uses the chart font.text_formattingint: Accepted for scripts from Pine and ignored: text is drawn in the regular style (no bold or italic).
Example
t.cell(0, 0, "Close", text_color=color.gray)