Lattice Grid Buy a licence

Charts ยท console.warn

chart viewportCap {value} is not a positive ...

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

Warnings reference › chart:viewportCap:*

Identifier
chart:viewportCap:*
Raised by
Charts
Since
1.73.0

What happened

spec.viewportCap on a markermap, bubblemap or choropleth named something other than a positive whole number of rows - a string, zero, a fraction. Rather than fetch everything or nothing from a value that means neither, the map uses the default cap of 20,000 rows.

The fix

Give a positive integer, or leave viewportCap out for the default.

The smallest fix

createChart({ grid, container, type: 'markermap', geometry: 'site', viewportCap: 50000 });

Reference

Covered in full at the API reference.