Charts ยท console.warn
the charts module needs the Lattice core; lo...
Printed by Charts, prefixed [lattice], since 1.92.0.
Warnings reference › chart:requires-core
- Identifier
chart:requires-core- Raised by
- Charts
- Since
- 1.92.0
What happened
The charts module's script-tag (UMD) build was loaded on a page whose LatticeGrid global is missing, so the core's own script build was not loaded first. The charts module no longer inlines the pushdown planner, so with no core there is no grid to bind a chart to; the chart API this load publishes cannot be used until the core is loaded. The warning is raised once and the load proceeds.
The fix
Load the core's script build (e.g. lattice-grid.min.js) before modules/charts.min.js, so LatticeGrid.createGrid exists before createChart is called.
The smallest fix
<script src="lattice-grid.min.js"></script>
<script src="modules/charts.min.js"></script>
Reference
Covered in full at the API reference.