Layout

Facets, concatenated views, breakpoint rules, and right-to-left text are keys on the spec. One JSON document draws the whole figure.

Small multiples

layout.facet.field splits the rows. These eight cities share one y domain and one legend. With shared scales, the y title and ticks sit on the outer column and the x ticks sit on the bottom row.

Edit

Dashboard

layout.concat.columns wraps the views. The arrivals line sets span: 2, so it sits above the dock bars and the cargo donut. The title belongs to the outer spec.

Edit

Breakpoints

The same facet uses four columns until the width is 560 or below, then two. Each panel stays tall enough for the ticks.

json
{
  "layout": {
    "facet": { "field": "city", "columns": 4, "scales": "shared", "legend": "shared" },
    "breakpoints": [{ "maxWidth": 560, "columns": 2 }]
  }
}
Edit
Edit

Right to left

layout.direction is rtl. The first city sits on the right, every bar is drawn, and the y axis follows it. The line below uses Hebrew month labels.

Edit
Edit