Lattice Grid Buy a licence

Charts ยท console.warn

axis.x.{min|max} is outside the x values ent...

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

Warnings reference › chart.axis.x.domain.beyond

Identifier
chart.axis.x.domain.beyond
Raised by
Charts
Since
1.72.0

What happened

One end of a continuous x axis was pinned past every reading, so nothing falls inside the domain. The pin was honoured - it is the caller's stated window - and the unpinned end was carried out by the width the data would have had, so the axis is still readable and the empty plot is visible.

The fix

Pin inside the data's range, or check the units: a time axis is pinned in epoch milliseconds, not seconds and not a Date.

The smallest fix

createChart({ grid, container, axis: { x: { min: Date.now() - 1800000 } } });

Reference

Covered in full at the API reference.