Lattice Grid Buy a licence

Charts ยท console.warn

a floating bar needs a from/to pair of colum...

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

Warnings reference › chart:floating:y-pair

Identifier
chart:floating:y-pair
Raised by
Charts
Since
1.85.0

What happened

A floatingBar or horizontalFloatingBar was given a single column (or no y at all). A floating bar spans between two values per category, so without a pair there is nothing to draw between and the chart is left empty.

The fix

Give y the two columns the bar spans, low first: y: ['low', 'high']. For one value measured from a baseline use a bar instead.

The smallest fix

createChart({ grid, container, type: 'floatingBar', x: 'band', y: ['low', 'high'] });

Reference

Covered in full at the API reference.