MMTMMT Docs
Diagnostics

T439

time coordinate on a pixel-positioned axis

T439

When a pool anchor pins the x axis to logical pixels (any viewport anchor, or anchor.left / anchor.right), x coordinates must be numeric rather than time values. Pass a finite int or float offset, or use a chart-space x axis (no anchor, anchor.top or anchor.bottom).

Failing example

script "conf"
data chart = subscribe(data.ohlcv)
state lines = entities.linePool(max: 2, anchor: anchor.topLeft)
on chart.update { lines.get("x").set(chart.time ?? time.fromUnixSeconds(0), 8.0, 40.0, 8.0) }

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
state lines = entities.linePool(max: 2, anchor: anchor.topLeft)
on chart.update { lines.get("x").set(8.0, 8.0, 40.0, 8.0) }

On this page