Lattice Grid Buy a licence

mapview ยท console.warn

createMapView: color is neither a colour nor...

Printed by mapview, prefixed [lattice], since 1.85.0.

Warnings reference › mapview:color

Identifier
mapview:color
Raised by
mapview
Since
1.85.0

What happened

color takes one colour (a CSS hex or rgb() colour, or [r, g, b]), a categorical rule { field, map }, or a numeric ramp { field, scale: 'ramp' }. The value given was none of these, so every row is drawn in the grid theme's accent.

The fix

Give a colour, or name the column the colour follows in field.

The smallest fix

color: { field: 'status', map: { live: '#2e7d32', build: '#f9a825', planned: '#90a4ae' } }

Reference

Covered in full at the API reference.