Lattice Grid Buy a licence

Charts ยท console.warn

axis window kind "{kind}" is not supported on a chart axis; only { kind: "time", span } rolls the domain. Bound the row count with the source's maxRows instead.

Printed by Charts, prefixed [lattice], since 1.49.0.

Warnings referencechart.axis.window.kind

Identifier
chart.axis.window.kind
Raised by
Charts
Since
1.49.0

What happened

An axis.x.window was configured with a kind other than 'time'. A chart axis can roll only over time - a count-based window is a property of the data, not of the drawing - so the window was ignored entirely and the axis covers the whole domain.

The fix

Use { kind: 'time', span } to roll the axis, or cap the rows at the source with maxRows if you wanted the last N readings.

The smallest fix

createChart({ grid, container, axis: { x: { window: { kind: 'time', span: 300000 } } } });

Reference

Covered in full at the API reference.