Skip to content

Cols Layout

Description

Arranges items side-by-side (horizontally).

Configuration

cols:
  - item_1
  - item_2

Behavior

  • Items are placed horizontally.
  • Width is divided equally among items by default (for example, 3 items = 33% each).
  • You can override widths using the width property on individual items.
  • cols never stacks: the board is a fixed-width frame that the page scales, so every item keeps its share of the width. See Sizing.

Item Options

Field Type Description
width string/number Explicit width: "50%", "300px", or a bare number meaning pixels (not a relative weight)

Example

# 50/50 Split
cols:
  - title: "Revenue"
    type: bar
    query: queries.revenue

  - title: "Orders"
    type: line
    query: queries.orders
# 70/30 Split
cols:
  - width: "70%"
    title: "Main Chart"
  - width: "30%"
    title: "Sidebar"