MMTMMT Docs
Diagnostics

T438

unsupported table cell value type

T438

Table cells can display float, int, bool, string, or time values. Null displays an empty cell. Convert other values to one of these types before passing them to table.cell.

Failing example

script "conf"
data chart = subscribe(data.ohlcv)
window win = window(title: "W") { tbl: table.new([table.col(title: "Value")]) }
on chart.update { win.tbl.row("A", table.cell(color.red)) }

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
window win = window(title: "W") { tbl: table.new([table.col(title: "Value")]) }
on chart.update { win.tbl.row("A", table.cell("red")) }

On this page