Skip to content

01 – Charts & Dashboards (docs/explore-analyze/charts, docs/explore-analyze/dashboards) ​

Pages read: 39 (list at the bottom)

Context for the re-implementer: the user's app already has saved charts (React + ECharts), dashboards with half/full-width tiles, and one global date-range override. Everything below is described relative to that. Cube Cloud's chart engine is Vega-Lite v5 (not ECharts); every chart setting below is a Cloud front-end feature. Cube Core (v1.8.35 in cubebi-cube) is a headless semantic layer: it supplies /v1/load, /v1/meta, /v1/sql, the SQL API, security context, drillMembers, format, links, custom granularities, switch dimensions, compareDateRange, total, ungrouped, access policies. No dashboard, chart, widget, comment, review or agent code exists in Core (the @cubejs-backend/cloud package in the image is only the CLI deploy/live-preview client: cloud.js, config.js, deploy.js, live-preview.js).

Evidence for Core model features (all in /cube/node_modules/@cubejs-backend/schema-compiler/dist/src/compiler/):

  • CubeValidator.js:282-294 LinkItemSchema {name, label, url (SQL), dashboard (slug), icon, target blank|self, primary, params[{key, value SQL}]}, url XOR dashboard; :324 links on dimensions; :107 format ∈ imageUrl|link|currency|percent|number|id, :109 link object {type: link, label}; :833 dimension type: 'switch' with values.
  • CubeSymbols.js:356-385 generates a synthetic string dimension <dim>___link_<name>_url per link (dashboard links become the SQL literal '/dashboard/<slug>' plus params) — so Core computes link URLs in SQL; :15,394 synthetic <measure>___format measures for dynamic formats.
  • CubeToMetaTransformer.js:140-170 /v1/meta exposes format, formatDescription, meta, links (name/label/dashboard/icon/target/primary/param keys); :235-264 drillMembers + drillMembersGrouped on measures.
  • api-gateway/dist/src/query.js: filter operators incl. startsWith/notStartsWith/endsWith/notEndsWith/set/notSet/inDateRange/notInDateRange/beforeOrOnDate/afterOrOnDate/measureFilter; compareDateRange, total, ungrouped, timezone.
  • api-gateway/dist/src/date-parser.js: relative ranges this|last|next <unit>, last|next N <unit>, today/yesterday/tomorrow, from X to Y (chrono-node). default_ui_filters / "start of 1 month ago" style values: no match in the Core image (grep for default_ui_filters|defaultUiFilters over all @cubejs-backend returned nothing).

Cloud API evidence (dashboards-as-code file format): specs/api.yaml DashboardConfig (≈line 11179), DashboardWidget* (11797-11960), DashboardFilter* (11455-11600), DashboardCrossFilter (11309), DashboardTimeGrain, DashboardMemberSwitcher, DashboardLayout, DashboardThemeInput (11732), Workbook (20500).


Charts: chart panel basics, type picker, reset ​

  • Docs: pages/docs/explore-analyze/charts/index.md, charts/configuration/index.md
  • What it does:
    • Every workbook tab (= saved report) has a chart panel with Fields and Style tabs (plus Formatting for tables, Design for KPI).
    • Quick-switch icons for common layouts (grouped vs stacked bars, line vs area, table vs chart) without opening the full panel.
    • On a new tab Cube shows the type picker, outlining one Recommended type; the user always picks. Manual config survives changing query fields.
    • Each config section (fields, series, pivot, column widths) has its own Reset; reset never changes the chart type.
    • Chart types: bar, line, area, scatter, pie/donut, funnel, sankey, heatmap, boxplot, table, KPI, bullet (bar variant), map, HTML, plus custom Vega-Lite and Markdown (KPI→Markdown conversion).
  • Availability: CLOUD-ONLY (front-end). Plan: not stated. Evidence: Cloud workbook UI; nothing in Core.
  • Core building blocks to use: /v1/load result + /v1/meta (member type, format, formatDescription, meta) to drive defaults.
  • To build on Core: chart-config schema per type, config panel UI, per-section reset. Effort: M (the user already has a saved-chart model; mainly broadening it).
  • Gotchas: keep chart config keyed by member name (not column index) so it survives query edits, as Cloud does.
  • Docs: pages/docs/explore-analyze/charts/chart-types/index.md
  • What it does: browser-side, not saved, session-only. Rules:
    • Table if: no measure, 2 time dimensions, ≥3 dimensions, or a category >30 values (maps exempt).
    • Else first match: Map (lat+lng present) → KPI (1 measure, 0 dims, 1 row) → Line (measure over time, optional split ≤10 values) → Scatter (≥2 measures, no time dim) → Stacked bar (1 measure, 2 categories ≤12 and ≤10) → Heatmap (1 measure, 2 categories >12 and >10, grid ≥50% filled) → Pie (count/sum measure, 2–6 categories, no negatives; never count_distinct) → Bar (≤12 categories, mean label ≤16 chars) → Horizontal bar (longer labels or >12 categories).
    • Thresholds from Draco (axis crowded >12, color saturates >10, unreadable >30); Cube's own: label length 16, pie ≤6.
    • No recommendation when: no clean match, time series split into 11–30 series, distinct counts unknown, empty result, result truncated by row limit, or user already picked manually in this picker.
    • Funnel, sankey, area, boxplot, HTML are never recommended.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/meta measure aggType (count/sum/countDistinct) and member types; result row count vs. query limit to detect truncation.
  • To build on Core: a pure function over (query, meta, result). Effort: S.
  • Gotchas: needs distinct-value counts per dimension (compute from result, mark unknown when truncated).

Charts: AI-generated charts and custom Vega-Lite spec editor ​

  • Docs: pages/docs/explore-analyze/charts/index.md, charts/custom.md
  • What it does:
    • All built-in types compile to Vega-Lite v5 JSON (mark, encoding.x/y/color with field = cube.member, type nominal/quantitative/temporal).
    • Spec editor opens automatically when the spec has things the builder can't represent: top-level transform, >2 non-text layers, certain dual-axis + rule combos. Edit spec button opens it manually; edits preview live.
    • AI agent writes a full Vega-Lite spec from a prompt ("show this as a stacked bar grouped by status") or auto-suggests a chart; result editable in the spec editor. Separate from the Recommended outline.
  • Availability: CLOUD-ONLY (AI agent + UI). Plan: not stated (AI features generally depend on AI tokens/agents).
  • Core building blocks to use: /v1/load data; /v1/meta for the LLM's field list.
  • To build on Core: raw-spec escape hatch (ECharts option JSON editor is the ECharts analogue), LLM call that returns a spec given query + meta + sample rows, validation. Effort: M (editor S; LLM generation + validation M).
  • Gotchas: user is on ECharts — either embed vega-embed for the custom/AI path or have the LLM emit ECharts options; validate/sandbox generated specs (no remote data URLs).

Charts: HTML chart (Handlebars + JS) ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/html.md
  • What it does: free-form HTML template; context result with result._first.<member> and {{#each result.data}}{{this.<member>}}; <script> tags allowed (Chart.js/D3 from CDN). Can't start cross-filters/drill-through; not commentable per point.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load data rows keyed by member name.
  • To build on Core: Handlebars render into a sandboxed iframe (sandbox="allow-scripts", no same-origin). Effort: S.
  • Gotchas: XSS — scripts must run in an isolated iframe, never in the app origin; member names contain dots, so Handlebars paths this.orders.status rely on nested objects (convert flat keys).

Charts: Bar (grouped/stacked/100%/horizontal/composite, Top N + Other) ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/bar.md
  • What it does:
    • Variants: basic, grouped, stacked, Stack %, horizontal versions of each, composite bar+line on right axis.
    • Stacking modes Automatic/Stack/Group/Overlay/Stack %; also per-series stacking (grouped clusters of stacked sub-groups).
    • Stacked totals data labels: format Auto (model format)/Number/Percentage/Currency, font size, position Outside end/Inside end/Inside center/Inside base.
    • Ordinal X axis; time fields ascending; other dims ascending by default except bins/value groups/Top N which keep result order; Sort None keeps result order.
    • Top N with Other: from a workbook Top N calculated field; Other computed in SQL so non-additive measures stay correct; Other last; can be a measure's Break down by; Ranked within a dimension to pick top members per bar.
    • Stacked tooltip is per segment.
  • Availability: CLOUD-ONLY (chart) / Top N field is a Cloud workbook calculated field. Plan: not stated.
  • Core building blocks to use: /v1/load with order + limit; for Top N + Other, a second query or a SQL-API query with RANK()/CASE; Core has no Top-N-with-Other primitive.
  • To build on Core: ECharts bar options mapping; Top-N/Other via SQL API (SELECT CASE WHEN rank<=N THEN dim ELSE 'Other' END ... MEASURE(x)) or two-query merge (only valid for additive measures). Effort: S for variants, M for SQL-correct Other.
  • Gotchas: summing "the rest" client-side is wrong for avg/distinct measures — Cloud does it in SQL.

Charts: Line and Area ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/line.md, area.md
  • What it does:
    • Line: single, multi-series (color split or multiple measures), reference lines (Y horizontal, X vertical e.g. launch date).
    • Area: Stack, Stack %, Overlay.
    • Axis: time dim → temporal axis (continuous, not constrained to result set); numeric dim → linear (gaps show); other → ordinal ascending (bins/Top N keep result order); combined with bars → ordinal even for numbers.
    • Missing measure value breaks the line; missing X values on linear/temporal axes are bridged.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: timeDimensions + granularity; /v1/meta member type to choose axis type.
  • To build on Core: ECharts xAxis.type time/value/category selection; connectNulls:false. Effort: S.
  • Gotchas: Core doesn't fill missing time buckets — gaps are bridged on a time axis unless you densify.

Charts: Scatter ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/scatter.md
  • What it does: two measures on X/Y; color by dimension; size by third measure (Style: smallest/largest radius px, size legend only when legend on). One point per: each row (default) or chosen dimensions — client re-aggregates: count/sum summed, min/max take min/max; other measures (avg, count_distinct) can't combine → notice asking to remove extra dimensions. Breakdown dimension always splits points. Mark type always Point.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/meta measure aggType to know which measures are re-aggregatable; better: re-query Core at the coarser grain instead of client re-aggregation.
  • To build on Core: ECharts scatter + visualMap for size. Effort: S.
  • Gotchas: client-side re-aggregation must respect aggType.

Charts: Pie & donut ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/pie.md
  • What it does: pie/donut (Shape); donut center total = grand total in measure format (toggle Show total; shows 100% second line when Percentage label on); slices colored in palette order by result sort; legend hide/move. "Other" slice (from Top N) offers only Copy value.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load; grand total from summing rows (only valid for additive measures) or a second query without the dimension.
  • To build on Core: ECharts pie with radius:[inner,outer] + graphic text. Effort: S.
  • Gotchas: center total for non-additive measure must come from a separate total query.

Charts: Funnel ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/funnel.md
  • What it does: exactly Stage (dimension or time dim) + Value (measure, rolled up per stage); stages in result order (never re-sorted); zero stage drawn as thin line; Direction vertical (default)/horizontal (disabled until both fields set); connector labels First (36% of first, default on) and Prev (20% of previous), also in tooltip; bar labels stage name + value, value format picker, single font size; label color flips when bar too narrow; colors per stage from palette; no legend by default.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load (single dimension + measure); Core funnel cubes / ungrouped if stages derive from events.
  • To build on Core: ECharts funnel series lacks connector percentages — custom series or bar-based drawing. Effort: S–M.
  • Gotchas: cannot start cross-filters or drill-through (but receives them, with highlighting).

Charts: Sankey ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/sankey.md
  • What it does:
    • Fields Source (dim/time dim), Target (dim), Value (measure); one row = one flow; Swap button.
    • Multi-stage via shared node names (A→B, B→C); blank endpoints and values ≤0 dropped.
    • Cycles: returned-to node split into numbered copy A (2); copies share color and hover; a self-loop errors with a message naming the loop.
    • Node grouping (off by default): Minimal share (% of side total; node exactly at threshold kept) or Top N nodes per side (ties kept); sides folded independently; bucket name configurable (default Other, Other (source)/Other (target) when both); single node never folded; a real node named like the bucket is excluded.
    • Hard cap 50 largest flows with warning beside the Flows heading.
    • Data labels Name (on) / Value (off); node value = max(inflow, outflow); labels flip left in final stage.
    • Color follows node name (stable across filters); Flows coloring Source (default)/Neutral/Target; no legend.
    • Tooltip seeds all columns except source/target/value.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load with two dimensions + measure.
  • To build on Core: ECharts sankey (needs acyclic graph — implement the cycle-splitting and grouping transforms yourself). Effort: M.
  • Gotchas: ECharts sankey throws on cycles; implement node splitting before rendering.

Charts: Heatmap and Boxplot ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/heatmap.md, boxplot.md
  • What it does:
    • Heatmap: X dim, Y dim, measure on Color; continuous gradient (light=low), reversible; empty cells blank.
    • Boxplot: X grouping dim, Y measure on raw row-level data; chart computes median, IQR box, whiskers to 1.5×IQR, outliers as points.
    • Neither can start cross-filters/drill-through.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: heatmap: normal /v1/load. Boxplot: ungrouped: true query (Core supports ungrouped) or a dimension at row grain; alternatively Core percentile measures.
  • To build on Core: ECharts heatmap + visualMap; ECharts boxplot with dataTool.prepareBoxplotData. Effort: S.
  • Gotchas: boxplot on raw rows can pull huge result sets — enforce a row limit or compute quartiles in SQL.

Charts: Bullet (bar + points + reference bands) ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/bullet.md
  • What it does: built from a horizontal bar: target measure set to mark Point (chart becomes "Composite"); ranges are reference bands on the measure axis; Percent edges compute bands per bar from the target measure (bars narrow so bands show around them); or fixed numeric bands; or a reference line when all targets are equal. Limitations: one band per range, label outside the band, Percent needs no breakdown, target marker is circle/square/triangle only.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load with two measures.
  • To build on Core: ECharts bar + scatter + per-category markArea/custom series for per-bar bands. Effort: S–M.
  • Gotchas: per-bar bands are not a native ECharts feature — custom series.

Charts: KPI (composable blocks) ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/kpi.md
  • What it does:
    • Blocks stacked in a Design panel (drag to reorder, × to remove, Add block):
      • Number: field, row index, format, font size/color, alignment.
      • Comparison: current field/row vs previous field/row (other column or other row), difference Absolute/%/both, positive/negative colors; static goal via constant calculated field.
      • Progress bar: value vs target field/row, bar or circle, color.
      • Sparkline: series measure + series dimension, bar/line, headline (series measure from row 1, or another column, or last point when empty), headline row 1st/2nd, show value, height/width, max points, colors.
      • HTML: Markdown + HTML + CSS.
    • Layout: direction row/column, align, justify, gap, wrap.
    • Click Number (measure) or Sparkline headline → value menu (drill down if drill_members); disabled while editing a dashboard.
    • One-way "convert to raw Markdown".
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load; compareDateRange for period-over-period rows; format from /v1/meta.
  • To build on Core: block model + renderer + builder UI; sparkline needs a second query by time. Effort: M.
  • Gotchas: "previous row" comparisons depend on query order — enforce order in the saved query.

Charts: Map (point, density, region/choropleth) ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/map.md
  • What it does:
    • Point: lat/lng numeric fields; Size by measure (default radius 2–20 px); Color by dimension (palette) or measure (color scale with stops pinned to min/median/percentile/fixed); clustering (off by default, Cluster until zoom default 14; not with density).
    • Density: heat surface, weight = row count or a measure (null/0/negative add nothing); Radius 5–100 (20), Intensity 0.5–5 (1), Opacity 10–100% (80%), Show from zoom (12; cross-fade 11→12), density scale (Plasma).
    • Region: source World countries / US states / Custom GeoJSON URL (HTTPS, CORS, Polygon/MultiPolygon FeatureCollection, properties with join key; cached per session); Property (join key), Dimension (query column), Color by (measure scale or dimension palette); auto-pick join + color fields; unmatched regions hidden unless Fill unmatched.
    • Projections Mercator 2D / Globe 3D. Zoom Auto (fit data, shows level) or Custom (saved level + center; zoom level, not area).
    • Region map menu: no title, no Copy value.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load with lat/lng dimensions (Core geo dimension type exists in data modeling); /v1/meta to detect geo.
  • To build on Core: ECharts geo/map for region + scatter/heatmap; for globe/density/clustering use MapLibre/deck.gl. Effort: M (region+point S–M; density+globe+clustering M–L).
  • Gotchas: custom GeoJSON fetched by browser (CORS); large point sets need server-side limits.

Charts: Table — columns, pivots, width, freezing ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/table.md
  • What it does:
    • Show/hide columns (eye); hidden keeps pivot position.
    • Column header menu (workbook only, editors): Freeze/Unfreeze up to here, Fit to content, Reset width, Rename…, Hide field, Column style….
    • Column order = Pivot section order (Rows dims then Values measures); drag to reorder.
    • Sorting is on the query (not the table), except pivot columns: click header (incl. totals column) or click a row number to sort columns by that row.
    • Pivot: Rows, Columns, Values + draggable Measures placeholder; presets Table (default) and Vertical records (transpose, measure names down the side); Reset.
    • Column options: label, alignment (default numbers right), vertical alignment, word wrap, width, freeze; ellipsis + hover tooltip on truncation.
    • Width: Flex weight ×N (default 1) or Fix px (min 10, steps of 10); drag header border; Fit (measures rendered rows only); bulk Flex/Fix/Fit; width on a pivoted measure applies to all its generated columns.
    • Freeze: pin freezes column and all to its left; row-number column freezes too; saved with chart (works in published/embedded/snapshots, not print); pivot default freezes row headers; measure pins disabled under column pivot; auto-unfreeze if no room to scroll.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load pivotConfig-style reshaping happens client-side (Core's client-core ResultSet.pivot()/tablePivot() is Core-ecosystem JS, not server).
  • To build on Core: a real grid (AG Grid / TanStack Table) with pivot engine and persisted column config. Effort: L (whole table feature set incl. sections below is the single biggest chart item).
  • Gotchas: pivot column explosion — cap columns; sorting by a pivot row is client-side.

Charts: Table — row grouping, totals, subtotals ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/table.md
  • What it does:
    • Group rows (needs ≥2 row dims and no column pivot): every row dim except innermost becomes a collapsible group level, except a dim that adds no rows (data-dependent; if result hit row limit, all but innermost group); Expand/Collapse all; per-level Default state; header styling.
    • Per-group subtotals (Σ): each subtotal is queried at its group's grain (true avg, true distinct count), works on collapsed groups; window-function measures (RUNNING_TOTAL, OFFSET, OVER) and period-comparison columns left empty; disabled in values-as-rows layout.
    • Column totals / row totals; pivot subtotals (Total for ‹value› column per pivot group when pivoted by ≥2 dims); totals pinned on every page.
  • Availability: CLOUD-ONLY (UI + query planning). Plan: not stated.
  • Core building blocks to use: extra /v1/load queries at coarser grains (one query per grouping level / per total) — Core has no GROUPING SETS/ROLLUP in the REST API; total: true only returns a row count. SQL API can express GROUP BY ROLLUP? (not verified — treat as unsupported; use multiple queries).
  • To build on Core: query planner that issues N grain queries and stitches; grouped-row grid. Effort: M–L.
  • Gotchas: summing child rows is wrong for non-additive measures; skip window-function measures (detect via /v1/meta type number with rolling_window/multi-stage).
  • Docs: pages/docs/explore-analyze/charts/chart-types/table.md
  • What it does:
    • Per-column display buttons: Value (composes with bars/sparkline), Bars xor Sparkline (numeric only), Link (only if dimension has links or format: link), Image (format: imageUrl or values look like image URLs). Image wins over link text; thumbnail clickable only if links declared.
    • Links: primary link renders inline; all links in cell menu; link picker when several.
    • Bars: positive/negative colors, centered zero for mixed signs, scale Auto (0..max) or Manual bounds; clamp but show true value.
    • Sparklines: pick a time dimension from the semantic view (removed from the table query, one-way), granularity (default query's or month), type Area/Line/Bar, colors, width, show value; ≥2 points; implemented as extra queries grouped by time dim + granularity (one per distinct dim/granularity combo).
    • Images: shape square/circle, fit/fill, height 20–100 px; only https or data:image/*; failed load → same-size placeholder; copying copies URL; no proxying.
  • Availability: CORE+CLOUD. Core part: links (with SQL-built URL via synthetic <dim>___link_<name>_url dimension, dashboard: slug, params, primary, target, icon) and format: link | imageUrl are Core data-model params exposed in /v1/meta (CubeValidator.js:107,282-324, CubeSymbols.js:356-385, CubeToMetaTransformer.js:160). Cloud part: all rendering, sparklines, bars. Plan: not stated.
  • Core building blocks to use: /v1/meta links/format; include <dim>___link_<name>_url members in the query to get per-row URLs; sparklines = second /v1/load with the time dimension added.
  • To build on Core: cell renderers + sparkline query batching. Effort: M.
  • Gotchas: link URL is a SQL expression evaluated per row — you must add the synthetic member to the query (check it is visible in /v1/meta); restrict image URL schemes.

Charts: Table — conditional formatting and color scales ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/table.md
  • What it does:
    • Formatting tab: rules → cases (condition + style: background, text color, bold/italic/underline, icon). First matching case in first matching rule wins.
    • Operators by type — Text: is/is not/contains/not contains/starts/ends/is null/not null; Number: is/is not/>/>=/</<=/between/null; Date: is/before/after/between/in last N days/this week|month|quarter|year/null; Boolean: true/false/null.
    • Scope: Source column (default) / Entire row / Select columns (falls back to source if none). Under column pivot each measure cell judged by its own value; row headers unstyled.
    • Presets: Indicators (Achieved or failed, Above or below, Standout or not), Conditional (Above/Below threshold, 2-tier, 3-tier traffic light), Color scales (Outstanding, Divergent, Traffic light gradient); thresholds start at 0.
    • Icons: arrow up/down, check, cross, dash, dot; color (independent of text color after set); placement right/left; never on totals rows.
    • Color scale: numeric only; 2 or 3 stops; anchors Min/Max/Midpoint/Average/Median/Number/Percentile with previews; Reverse; Treat nulls as zero (on); normalized per column on data cells; totals clamp; column totals row never colored.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/meta member types.
  • To build on Core: rule engine + editor UI. Effort: M.
  • Gotchas: percentile/median anchors computed client-side over displayed rows only.

Charts: Table — copy, style sections, borders, pagination ​

  • Docs: pages/docs/explore-analyze/charts/chart-types/table.md
  • What it does: click cell + Cmd/Ctrl+C copies raw value; drag or Shift+click range; Copy values / Copy values with headers (TSV); also in Results table. Style sections Headers/Values/Row grouping/Totals/Borders/Pagination/Columns each with Reset; toolbars for colors, B/I/U, alignment, vertical alignment (Values), overflow; Values toggles row numbers, hover row, row banding (+color). Borders: Horizontal (on), Vertical (off), Header (on), Totals (on), Outer (off), each with color + width 1–10, width-sync link; presets Rows/Full grid/Minimal/Accounting/None. Pagination: fixed 50 rows/page, totals pinned.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none beyond /v1/load.
  • To build on Core: grid styling config. Effort: S–M.
  • Gotchas: theme defaults must adapt to light/dark.

Charts: Value menu, drill down, time drill-down, keyboard access ​

  • Docs: pages/docs/explore-analyze/charts/index.md, chart-types/table.md (Cell menu), chart-types/kpi.md, chart-types/sankey.md
  • What it does:
    • Click on bar/point/slice/scatter point/heatmap cell/funnel stage/box/Sankey ribbon/map marker/KPI Number or Sparkline value opens one menu (workbook, builder, published, embedded). Order: title (each dim title+value, then measure title + formatted value) → Open in <dashboard> (drill-through) → dimension links (tables) → Drill down (if drill_members) → Copy value (raw) → cross-filter items → comment items. Disabled items show reason under the label.
    • Short menus: pie Other / Sankey ribbon touching Other → Copy value only; KPI total without dim → no title; region → no title, no Copy.
    • Drill down on measure cell: opens underlying rows (drill members). On time-dimension cell: submenu of finer granularities re-bucketing same measures scoped to that period (Week never a target from coarser grains; week → Day and finer); repeatable; close to return. Custom-granularity buckets: Cube first asks the data source which rows the bucket holds; filter shown as day range ("Split Created at is Jan 1 – Jan 2"); explicit error if it can't. Explore from here opens the drill.
    • Drag across axis = range selection (menu: Filter dashboard by these points); Cmd/Ctrl+click adds to cross-filter.
    • Keyboard: tables Tab/arrows, Shift+F10 or context-menu key, Esc returns focus; charts are one Tab stop, ←/→ through points left→right, ↑/↓ to nearest point at same x, Enter/Shift+F10 opens menu, focused point shows tooltip; maps step west→east, north→south.
  • Availability: CORE+CLOUD. Core: drill_members on measures → /v1/meta drillMembers/drillMembersGrouped (CubeToMetaTransformer.js:235-264); drill query = dimensions from drillMembers + filters from clicked point + same dateRange (this is how Core's own @cubejs-client/core ResultSet.drillDown() works); custom granularities are Core. Cloud: menu UI, a11y, time drill-down UX, custom-granularity bucket resolution. Plan: not stated.
  • Core building blocks to use: /v1/meta drillMembers; /v1/load with timeDimensions[].granularity + dateRange for time drill; for custom-granularity buckets, query min/max of the raw time at that granularity to get the bucket's real range.
  • To build on Core: value-menu component, drill modal (table of drill rows), time drill stack. Effort: M.
  • Gotchas: user's app has no drill at all; ECharts click events give dataIndex — map back to the full row (all dims) to build filters; nulls can't be filtered with equals (use notSet).

Charts: Series mapping and series configuration (mark type, axis, trend lines) ​

  • Docs: pages/docs/explore-analyze/charts/configuration/series-mapping.md, series-configuration.md
  • What it does:
    • Channels: X (bar/line/area/scatter/heatmap/boxplot), Y, Color (one series per value), Size (scatter, map), Split by (small multiples), Tooltip, Theta (pie), Source/Target/Value (sankey). Drag from Available fields; a field may be in multiple channels; × to remove.
    • Per series (each measure): mark type Bar/Line/Area/Point (scatter always Point), Y axis Left/Right, Break down by + placement Stacked/Side by side (bars)/Overlaid (areas)/Stacked to 100%; Style: color (only without Color channel), line style, point shape, interpolation, per-series data labels.
    • Trend line (time or numeric X): Linear (default), Exponential, Polynomial degree 2–8 (3), Moving average period 2–100 (3), Logarithmic, Power (numeric X only; fall back to Linear on time axis); Exp/Power need y>0; Log/Power need x>0; Confidence band (95%) (not for moving average); per breakdown value and per small-multiple panel.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/load.
  • To build on Core: channel-mapping UI; trend fitting via ecStat (regression) + own CI computation. Effort: M.
  • Gotchas: 95% CI for non-linear fits needs own math (ecStat doesn't provide bands).

Charts: Axes, reference lines and reference bands ​

  • Docs: pages/docs/explore-analyze/charts/configuration/axes.md
  • What it does:
    • X: show, title, grid, labels, angle, label format, Every N day/week/month/quarter/year (no finer than query grain).
    • Y: show, title, grid, labels, format (d3 like $,.0f), log scale (not with ≤0), Start at zero (default on; bars always 0), Min/Max, Interval; hidden on 100% stacked. Scatter X gets same scale options. Dual Y axis via series assignment; independent right-axis settings.
    • Reference lines: via axis ⋮ → Add reference line; starts at current max (empty = follow max); color, label (default Reference, Reference 2…), Show value, style solid/dashed/dotted, width, label position (Start/Middle/End × Above/Below; default End+Above; auto-flip near edges; vertical line rules); Line at Number/Average/Median/Min/Max/Percentile (default 90), computed from drawn points (stack totals when stacked), Computed from measure, warning when that measure removed; not on 100% charts.
    • Reference bands: measure axis (From/To numbers or computed or Percent per bar), numeric X, time X (date pickers); none on category axes; label (Band…), Show value, Show edges, edge style/width, label position incl. Inside; Convert line → band (To = Average or p90; numeric: far end; time: 7 days), Split band → two lines; per-side lines/bands on dual axis; date bands only on time axes.
    • Agent can add computed lines/bands from chat.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/meta format; data from /v1/load.
  • To build on Core: ECharts markLine/markArea with computed values; label positioning. Effort: M.
  • Gotchas: user is on ECharts: markLine supports average/min/max natively; median/percentile you compute.

Charts: Color, palettes, stacking, legend ​

  • Docs: pages/docs/explore-analyze/charts/configuration/color-and-stacking.md
  • What it does: Color channel → series per value; strings discrete only, dates/numbers discrete or continuous gradient. Discrete palettes applied in result sort order, Reverse colors; gradient palettes; custom palettes created by admins in Admin → Customization → Chart palettes (needs Manage chart palettes permission), available account-wide. Per-series color picker when no Color channel. Stacking Automatic/Stack/Group/Overlay/Stack % (tooltip shows raw value). Sort stack by Label (default)/Value (bar only)/Sum/Unsorted. Legend position R/L/T/B or Hidden; click entry = isolate (axes rescale; others dimmed), Cmd/Ctrl-click toggles one (last visible can't hide); not saved.
  • Availability: CLOUD-ONLY (palette admin is Cloud admin). Plan: not stated; permission-gated.
  • Core building blocks to use: none (could store palettes in your own DB; meta on members could carry brand colors per value).
  • To build on Core: palette registry (account-level) + chart wiring. Effort: S–M.
  • Gotchas: ECharts legend default toggles visibility; isolate-on-click needs custom legendselectchanged handling.

Charts: Small multiples ​

  • Docs: pages/docs/explore-analyze/charts/configuration/small-multiples.md
  • What it does: bar/line/area/scatter only; Split by dim (+ optional and by for a grid); dims only; grid up to 5×5 (preselected from distinct count); one dim: product bounds panels; two dims: each number caps its axis; axis scales Shared (default)/Independent; Sort panels by Value or Measure, asc/desc (columns only with two dims; rows ascending); extra values not drawn (query unaffected); settings shared across panels; legend shared, clicks apply to all panels; trend lines and reference lines per panel. Limitations: max 2 split dims; can't enable split on a chart that already has data labels, reference line, or second Y axis (enable split first); panel labels fixed style. Agent can split ("one panel per region").
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: single /v1/load including the split dims.
  • To build on Core: ECharts multiple grids + per-grid axes. Effort: M.
  • Gotchas: sorting panels by measure needs per-panel totals (additive only or extra query).

Charts: Tooltips and data labels ​

  • Docs: pages/docs/explore-analyze/charts/configuration/tooltips.md, data-labels.md
  • What it does: tooltips default to all mapped fields (sankey: all but source/target/value); add/remove/reorder fields; empty list disables; stacked tooltip per segment. Data labels: on stacked bars show stack totals; Format Auto (model format)/Number/Percentage/Currency, font size, position (4 options); per-series labels.
  • Availability: CLOUD-ONLY; the Auto format comes from Core format (named numeric formats, currency, percent, dynamic format.sql via synthetic <measure>___format — CubeSymbols.js:394). Plan: not stated.
  • Core building blocks to use: /v1/meta format, formatDescription; synthetic ___format measures for per-row formats.
  • To build on Core: formatter from formatDescription + tooltip config. Effort: S.
  • Gotchas: none major.

Dashboards: publishing, versions, revision history ​

  • Docs: pages/docs/explore-analyze/dashboards/index.md
  • What it does:
    • One dashboard per workbook; draft vs published versions (v{N}); viewers always see latest published; Undo/Redo/Revert to published.
    • Button next to Publish shows v{N} (in sync) or Draft; with required review → Request review / Review.
    • Revision history: every version with number, time, publisher, one-line change summary (widgets added/updated/removed, layout moved, title/description, settings: cross-filtering, live refresh, time zone, agent, theme; others "Updated dashboard settings"), localized; AI may rewrite the line a few seconds after publish with detail, in publisher's language; draft row describes pending change. Preview + Restore (to draft).
    • Viewers' version chip shows live version, publish time, and change summary (not in embeds).
  • Availability: CLOUD-ONLY. Plan: not stated. Evidence: Cloud API POST /workbooks/{id}/publish, Workbook.dashboardDraft/dashboardPublished.
  • Core building blocks to use: none (pure app storage).
  • To build on Core: versioned dashboard table (draft JSON + immutable published versions), diff function for change summaries, optional LLM summary. Effort: M.
  • Gotchas: charts on a published version must be pinned to the report version at publish time (reviews rely on frozen report versions).

Dashboards: live updates (real-time sync) ​

  • Docs: pages/docs/explore-analyze/dashboards/index.md
  • What it does: builder shows chart/draft changes from other people, MCP agents, Workbook Agent or other tabs as soon as saved; Undo reverts an incoming change as one step; published page picks up new publishes live, keeping the viewer's control selections, cross-filters, added dynamic controls and tab (dropped if removed); catch-up on reconnect/tab focus; embeds don't live-update. Conflict rule: unsaved draft edit wins over incoming draft change; incoming chart change wins over local chart edit.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none (Core's websocket transport is for query subscriptions only).
  • To build on Core: pub/sub (WebSocket/SSE) on dashboard/report changes, client merge rules. Effort: M.
  • Gotchas: define last-writer-wins rules explicitly as Cloud does.
  • Docs: pages/docs/explore-analyze/dashboards/index.md
  • What it does: ⋮ → Present: browser fullscreen, hides sidebar/header/panels/chat; floating panel: Pause/Play, First/Previous/Next, n of N input, Autoplay (5–3600 s, default 10, loops), Live refresh switch, Copy link (with fullscreen, autoplay, autoRefresh, controls, cross-filters, tabs), Exit. Play shows each chart full-screen in reading order (top→bottom, left→right), recursing into containers (tabs: all charts of each tab in order); KPIs scaled up; text/controls/analysis/spacers only on Pause. Keys →/PgDn/Space, ←/PgUp/Shift+Space, Home/End. Panel auto-hides after 3 s. Esc/Back exits; state restored. Needs ≥920 px. URL ?fullscreen=true&autoplay=<5..3600> (invalid → 10). Dashboard Agent can produce such links.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none.
  • To build on Core: fullscreen route + slideshow over widget tree. Effort: S–M.
  • Gotchas: TV links require signed-in session; consider a signed read-only token for kiosks.

Dashboards: live refresh and data freshness ​

  • Docs: pages/docs/explore-analyze/dashboards/index.md, widgets/analysis.md
  • What it does: author enables Live refresh (Editing tab, 1–1440 min, default 5), published with the version; viewer starts it from ⋮ (Live refresh / Stop live refresh) or presentation switch; URL autoRefresh=true (published interval) or autoRefresh=<1..1440> (overrides, works even if off). Interval counts from end of last full refresh; no overlap; paused in hidden tabs, refresh immediately when shown if overdue; keeps controls/cross-filters/tabs; re-runs already-run Analysis widgets locally (not published); failure toasts Failed to refresh dashboard / Couldn't load filter values. Freshness leaf per widget (how recently data refreshed); dashboard leaf = stalest widget; Refresh all charts.
  • Availability: CORE+CLOUD. Core: result freshness — /v1/load returns lastRefreshTime, refreshKeyValues, usedPreAggregations, and renewQuery: true forces refresh; Cloud: UI, timers, URL param. Plan: not stated.
  • Core building blocks to use: renewQuery, lastRefreshTime in /v1/load response, refresh keys / pre-aggregation refresh.
  • To build on Core: client timer + leaf component. Effort: S.
  • Gotchas: renewQuery on every tile × every viewer can hammer the warehouse — prefer refresh keys.
  • Docs: pages/docs/explore-analyze/dashboards/index.md (Linking, Dashboard slug)
  • What it does: dimension links in the data model: dashboard: <slug> drill-in (opens target filtered by the clicked row's values) or url: external; same links in every table (dashboards, workbooks, embeds, Explore). Slug: short stable id set in the options sidebar or by drill-through dialog; unique per deployment; resolved per deployment (portable across envs); dashboard URL stays publicId-based; unresolved slug links are silently skipped; warning when changing a slug that links/drill-throughs reference.
  • Availability: CORE+CLOUD. Core: links (incl. dashboard slug, params, primary, icon, target) validated and exposed in /v1/meta, URL computed in SQL as synthetic <dim>___link_<name>_url dimension returning '/dashboard/<slug>' + params (CubeSymbols.js:356-385). Cloud: slug registry, cell menu, filtered navigation. Plan: not stated.
  • Core building blocks to use: /v1/meta links; query the synthetic link-URL member; your app maps /dashboard/<slug> to its own route.
  • To build on Core: slug field on dashboards + resolver + URL filter params on target (see "URL state"). Effort: S (Core already does the hard part).
  • Gotchas: the Core-generated path is /dashboard/<slug> — your router must own that path or rewrite it.

Dashboards: downloads (PNG, PDF, CSV, print version) ​

  • Docs: pages/docs/explore-analyze/dashboards/index.md
  • What it does:
    • Dashboard Download dialog: Format PNG/PDF; Layout Snapshot (as on screen) or Print version (PDF only); Control values Current/Default/Custom (per-control Use default/Set to/Clear; custom excludes cross-filters). Dialog resets to PDF/Snapshot/Current each time; one download at a time.
    • Rendered server-side (headless capture), up to minutes (print up to 10 min); single-chart download carries current controls + cross-filters; scheduled notifications render defaults unless they carry selections. Requires Download data permission; hidden by account-wide data download controls. Also via Control Plane API POST /dashboard-exports (async job, poll, download; layout: print).
    • Single chart: CSV/PNG/PDF; tables also Print version; CSV from data already loaded (rows on screen), with CSV settings + preview; PNG/PDF only on published page.
    • Print version: A4, title + one summary line of control values (format Order date between … · Grouping = Users City; hidden controls included; data-resolved defaults resolved; cross-filters appended), controls omitted, widgets full-width in reading order, all tabs printed, tables print all rows with repeated headers, no split rows/blocks, pivots/totals/groups expanded; export size limit error.
  • Availability: CLOUD-ONLY. Plan: not stated (permission-gated). Evidence: Control Plane API dashboard-exports in specs/api.yaml:763-920.
  • Core building blocks to use: /v1/load (full row fetch for print tables, paging via limit/offset).
  • To build on Core: headless Chromium (Playwright) render service + job queue + print layout CSS; CSV client-side. Effort: L.
  • Gotchas: hidden control values leak into print summary (documented warning) — same risk in a rebuild; headless renderer needs a service identity with the viewer's security context.

Dashboards: cross-filtering ​

  • Docs: pages/docs/explore-analyze/dashboards/cross-filtering.md
  • What it does:
    • Off by default; author turns on in Editing tab; published dashboards + private/signed embeds; Workbook Agent can toggle.
    • Click point → Filter dashboard by this point. Filter content: bar/line/area/pie → category (+ color/series value); scatter → all its dims; map region → region; point map → its dims; table dimension cell → that value; measure cell → every dim in the row; pivot value cell → row + column values.
    • Sources: bar, line, area, scatter, pie, composite, maps, tables. Not sources (but receivers): heatmap, boxplot, funnel, KPI, sankey, HTML.
    • Receivers re-run queries. Highlighting on bar/funnel/pie/donut (full data dimmed + filtered part overlaid; tooltip shows filtered vs full; axes don't move; data labels/donut total keep full numbers). Charts that filter instead of highlight: lines/tables/KPIs (totals and comparisons filtered), composite with a line, period-comparison charts, Top N field/filter, measure-filter charts; row-limited charts highlight while rows fit, filter once limit cuts.
    • Source chart is never filtered by its own cross-filter; it dims non-selected data.
    • Cmd/Ctrl+click adds/removes values (OR within chart); drag on date/number X axis selects a range (replaces; date range = start of first period to end of last; no touch drag).
    • Narrow filter to this point, Reset this filter; null values can't cross-filter ("Cross-filters don't apply to empty values").
    • Custom-granularity bucket → exact rows of the bucket (data source asked; error message per chart if it can't).
    • Hover buttons: bolt (Is filtering other charts. Click to reset), filter-check (Filtered by Status, City / Highlighting …; multiple → Cross-filter to reset menu in set order).
    • Combine: AND across charts and with controls; independent clearing. Reach: same semantic view via same dimension; other view only if it includes the same cube dimension exactly once; multi-dim cross-filter only reaches charts that can take all dims; Python reports and Analysis widgets never filtered. Faceted filters at All sources narrow by cross-filters (Status (cross-filter)).
    • Stored in the page URL (per viewer); preserved by reload/bookmark/Copy link; link to a dashboard with cross-filtering off opens unfiltered; while a link loads, charts wait until reach is known.
    • Used by: drill down, Explore/Edit in workbook (multi-period date → one range), downloads (Current), print summary, Dashboard Agent, schedules/alerts created from the page (listed under Control values).
    • API shape: DashboardCrossFilter {sourceWidgetId, view, dimensions[{member, operator, values[], grain}]}.
  • Availability: CLOUD-ONLY. Plan: not stated. Evidence: UI-only; Cloud API schema DashboardCrossFilter.
  • Core building blocks to use: /v1/load filters (equals, inDateRange for ranges/periods); /v1/meta views + member aliasMember/cube origin to find "same cube dimension in another view" (views in /v1/meta expose member origins); custom granularity bucket bounds via an extra query.
  • To build on Core: cross-filter state (URL-serialized), per-chart filter injection, reach resolver across views, highlight rendering (two queries per highlighting chart: full + filtered), hover buttons, ECharts brush for ranges. Effort: L (M without highlighting).
  • Gotchas: highlight mode doubles queries; the "same cube dimension once" rule needs view→cube member mapping from /v1/meta; the user's global date-range override must AND with cross-filters.

Dashboards: drill-through (chart → other dashboard) ​

  • Docs: pages/docs/explore-analyze/dashboards/drill-through.md
  • What it does:
    • Set per chart in builder (⋮ → Add drill-through); target list = visible dashboards in deployment except self (self refused, also via agent/API); shown as [slug] · Name; search by name/slug.
    • Target needs a slug and a filter (placed or allowed in Dynamic controls) for every chart dimension. If you can edit the target (and it doesn't require review): slug auto-proposed from first three title words (-2, -3…), checkboxes for missing filters; Save saves slug → adds dims to target's Dynamic controls (creating the widget at top if needed) → publishes that change immediately on top of the target's live version (other draft changes stay unpublished). Otherwise read-only with "Ask <owner> (<email>) to set a slug and enable filters for …". Undo only reverts the source chart.
    • Sources: same chart types as cross-filtering; others show disabled "This chart type doesn't support drill-through". Chart header shows drill-through icon.
    • Viewer: Open in <title> first in value menu (even with cross-filtering off); same tab, Cmd/Ctrl+click new tab (signed embed: always same tab); Back returns with state. Group rows and marker clusters offer none.
    • Values passed as URL filter params: is per dimension; date at granularity → between over the period (2024-03-01T00:00:00.000–2024-03-31T23:59:59.999); custom granularity → {"type":"between","value":[first,last+1ms],"startInclusive":true,"endInclusive":false}.
    • Disabled reasons: loading target, null values, no access (incl. signed-embed not allowed), not published / deleted, load error, custom bucket resolving/failed.
    • Target applies each value: (1) placed filter on same field → (2) placed filter on same cube dimension in another view (URL rewritten) → (3) Dynamic controls filter on field or same cube dim (dc_ param). Else dropped with "Unable to filter by <field>"; Disabled filters take no value; several filters: by condition. Same logic for any filtered link (dashboard: links, hand-written). Downloads/deliveries/alerts don't run this resolution.
    • Slug changes warn and list dependent dashboards; never auto-rewritten; slug takeover redirects existing drill-throughs.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: /v1/meta for view→cube member mapping; inDateRange with exclusive end via explicit timestamps.
  • To build on Core: drill-through config on chart widget, target picker, URL filter landing resolver (shared with links), cross-dashboard permission checks. Effort: M.
  • Gotchas: the auto-publish of target filters is a cross-dashboard write — needs edit permission checks and an audit trail.

Dashboards: comments (threads, data-point annotations) ​

  • Docs: pages/docs/explore-analyze/dashboards/comments.md
  • What it does:
    • Published dashboards only; Comments header button with unresolved count; resizable right panel; bottom tray <920 px (75% height, expand/collapse, discard-changes prompt).
    • Threads (oldest first) with one-level replies; Enter posts, Shift+Enter newline.
    • WYSIWYG formatting (bold, italic, link, numbered/bulleted list, quote, code, code block) with shortcuts; paste URL over selection makes a link; markdown typed renders; headings/tables/images/HTML shown as typed; notifications strip markers.
    • Open/Resolved tabs; Resolve/Re-open (resolved: no replies/reactions).
    • Chart threads (Comment on this chart, with count; panel filter All threads / per chart; Untitled chart, Removed chart — threads reattach if chart returns).
    • Data-point threads: popover at the point; pin with open-count (check mark if only resolved); point identified by measure + dimension values (not position); shows old vs new value (12,480 (as seen on Oct 11) / 14,020 (now)); hidden pin if point filtered out (grey in panel); time-grain change = different point. Per type: funnel stages, KPI Number/Sparkline headline, boxplot box (median) + outliers, map markers/regions (only when a measure is shown; cluster pins aggregate; pins visible in density mode; panel click pans), sankey ribbons (not Other), table measure cells (pin moves with row; pivot includes column dims; not totals/subtotals/groups/empty/sparklines/comparison columns); not HTML charts.
    • Edit (edited mark) / Delete reply / Delete thread (confirm, no undo).
    • Reactions: fixed six 👍 ✅ 👀 ❤️ 🎉 😀, counts, who-reacted hover, no notifications.
    • @mentions from account users (name+email); inbox + email (respects prefs; email delayed 5 min, skipped if read); mentions inside formatting; plain @name not a mention; edits notify only newly added.
    • Reply notifications to all prior participants; no self-notify; mention+reply = one notification.
    • Copy link to comment opens panel, scrolls, highlights.
    • Live updates of threads/counts across users/tabs.
    • Permissions: only author edits/deletes; workbook editors and thread author can resolve. Account toggle Admin → Settings → Dashboard comments (default on; separate embed toggle); off hides but keeps data. Audit Log records comment text.
  • Availability: CLOUD-ONLY. Plan: not stated (admin toggle).
  • Core building blocks to use: none (anchor = measure name + dimension values from /v1/load rows).
  • To build on Core: comments service (threads, replies, reactions, mentions, resolve), notification inbox + email with delayed send, realtime channel, rich-text editor (TipTap/Lexical), pin overlay per chart type. Effort: L (M for dashboard/chart threads only; data-point pins add most of the work).
  • Gotchas: anchoring by dimension values must include the time granularity; keep the "value at comment time" snapshot.

Dashboards: reviews (approval before publish) ​

  • Docs: pages/docs/explore-analyze/dashboards/reviews.md
  • What it does:
    • Per dashboard, set by Full access users: Require review before publishing + optional default reviewers (requester excluded from own request). Publish via API/agent/promotion refused (400 "This dashboard requires review before publishing").
    • Request (Can edit/Full access): pick reviewers (not self; ≥1), AI-drafted message in requester's language (editable; typing stops it). Freezes revision 1: widgets, layout, title/description, current version of every chart's report (incl. in containers).
    • Reviewers lacking access: Full access requester auto-grants Can view; Can edit requester sees No access.
    • Review page: frozen preview; statuses Pending approval / Changes requested / Approved / Published / Cancelled; panel tabs Activity (across earlier reviews since last publish, revision tags) and Changes (diff vs published).
    • Comments, Approve, Request changes (requester can't verdict); latest verdict per reviewer counts. Review comments separate from dashboard comments.
    • New draft → Request review again = next revision; clears all verdicts. One open review per dashboard; no-op revision refused.
    • Publish (editors) when Approved: publishes exactly the approved revision; later draft edits remain draft; workbook title/description kept current.
    • Cancel (requester or Full access): final, nothing published.
    • Notifications (email + inbox) on request/revision/comment/approve/changes/published; actor excluded; opt-out Dashboard reviews pref/unsubscribe.
    • Revision history shows review revisions (In review/Published/Cancelled/Superseded), preview only, no restore. Not on embeds.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none.
  • To build on Core: review entity + state machine, frozen snapshot storage (dashboard + report versions), diff view, notifications, publish gate in every publish path. Effort: L.
  • Gotchas: requires report versioning that the user's app likely lacks (charts edited in place).

Dashboards: Dashboard Agent (chat on published/embedded dashboards) ​

  • Docs: pages/docs/explore-analyze/dashboards/dashboard-agent.md
  • What it does:
    • Docked resizable chat panel (tray <920 px), New chat; distinct from Workbook Agent (authoring).
    • Agent choice: per dashboard (Agent on Editing tab; default = deployment default or Auto), per chart override, per Analysis widget; Ask a follow up question on a chart starts a chat on that chart's agent (chip removable; marked recommended); viewer can switch agents for their session; fallback chain chart → dashboard → deployment default.
    • Chart follow-up passes a read-only snapshot: SQL, data, chart spec + current filter/granularity state.
    • Answers via live read-only queries against the semantic model (re-aggregate, break down, longer ranges), explains metric definitions, looks up dimension values, reads attachments (text, PDF, ZIP, images).
    • Changes the viewer's controls: filters, time granularity (only allowed grains incl. custom; never undefined grains), field switcher (only Alternatives), parent presets (only defined ones), cross-filters (only if enabled; reset one or all); adds Dynamic-controls filters/grain/field switchers when allowed; Disabled controls untouchable; partial application with explanation. Session-only, reflected in URL.
    • Viewer's own presets: save values as preset (new or named parent; toasts when nothing to save), rename parent/preset; can't delete.
    • Promote added controls into draft (if viewer can edit; not standalone embeds; Creator Mode ok).
    • Lasting changes: editor → edits draft (shows Unpublished changes + Open in builder; can publish unless review required); can't edit but can create workbooks (e.g. Explorer) → creates Copy of … and edits it (optionally carrying added controls); else read-only. Embedded: read-only (except promote in Creator Mode).
    • Can't: send email, schedule, web search, Python; report search covers published reports only. Generates presentation/TV links.
  • Availability: CLOUD-ONLY. Plan: not stated (AI agents / multi-agent are Cloud admin features).
  • Core building blocks to use: /v1/meta (incl. member descriptions/meta) for tool schemas; /v1/load + /v1/sql as the read-only query tool under the viewer's security context; dimension value lookup = /v1/load with one dimension + contains filter; Core's own security context/queryRewrite enforces row security for agent queries.
  • To build on Core: LLM agent with tools {query, describe_member, list_values, set_control, set_cross_filter, add_dynamic_control, save_preset, edit_dashboard_draft, copy_dashboard}; tool calls emit the same state changes as UI (URL); attachment parsing; chat persistence. Effort: L (M for Q&A + control setting only).
  • Gotchas: run agent queries with the viewer's JWT, never a service token; control-setting tools must reuse the URL-state resolver so results match manual changes.

Dashboards: dashboards as code (REST upserts) and the file format ​

  • Docs: pages/docs/explore-analyze/dashboards/dashboards-as-code.md; schema in specs/api.yaml
  • What it does:
    • Two idempotent upserts: PUT /api/v1/deployments/{id}/workbooks/by-slug/{slug} (workbook + meta.dashboardDraft, meta merged, draft validated like the builder) and PUT /api/v1/deployments/{id}/reports/by-public-id/{publicId} (report: sqlQuery/jsonQuery, pivotItems, visualization in meta incl. vegaSpec, chartCategory). Then POST /workbooks/{id}/publish (idempotent; 400 if review required).
    • Flow: author in UI → GET /reports/{id} and GET /workbooks/{id} → commit → apply reports → rewrite numeric report ids inside dashboardDraft for a new deployment → upsert workbook → publish. No bundle export/apply command shipped.
    • Identity: publicId 12 chars [0-9A-Za-z], account-unique, write-once (assign on create or via PUT /reports/{id}); synthesized legacy ids are non-unique (upsert adopts only if unambiguous; else 409 ambiguous_legacy_id); reserved placeholder shape → 400. Slug deployment-scoped (same slug that links: dashboard: and drill-through use).
    • Conflicts: 409 upsert_branch_changed (retry, concurrent writer); 409 no code = publicId in another deployment (permanent). Upserts serialize per key.
    • Also GET /reports/{id}/file canonical JSON + SHA-256 and PATCH /reports/{id}/file for partial edits.
    • File format (from specs/api.yaml): DashboardConfig {title, description, kind: CLASSIC|APP, app, layout {breakpoints{lg,md,sm,xs,xxs}, cols{…}, rowHeight, margin[], containerPadding[]}, settings{…free-form}, theme{backgroundColor, fontFamily, primaryColor, themeId, dashboard{backgroundColor,padding}, widgets{…}, controls{…}}, widgets[]}; DashboardWidget {id (≤128), type: CHART|TEXT|FILTER|AI|TIME_GRAIN|FIELD|PARENT|SPACER|DIVIDER|DYNAMIC_CONTROLS|CONTAINER, position{x,y,w,h}, responsiveLayouts, config{…free-form}, style{…}}; DashboardFilter {member, operator (equals…top_n/bottom_n/custom), value, rankMeasure, startInclusive, endInclusive, caseSensitive}; DashboardTimeGrain {member, grain ('' = cleared)}; DashboardMemberSwitcher {member, selected}; DashboardCrossFilter {sourceWidgetId, view, dimensions[{member, operator, values, grain}]}. Widget config internals are untyped in the spec (react-grid-layout-style positions).
  • Availability: CLOUD-ONLY. Plan: not stated. Evidence: Cloud REST API.
  • Core building blocks to use: Core's own data model is already files-in-Git; reuse that repo for dashboard JSON/YAML.
  • To build on Core: define your own dashboard/report JSON schema (you can mirror the shape above), import/export CLI or PUT by-slug endpoints with idempotent upsert keyed by slug/publicId, CI apply. Effort: S–M (simpler for you: since your app owns the store, you can key reports by slug directly and skip numeric-id rewriting).
  • Gotchas: Cloud's numeric-id rewriting step is an artifact of its storage — avoid it by referencing reports by stable key in your format.

Dashboards: styling / theme ​

  • Docs: pages/docs/explore-analyze/dashboards/styling.md, widgets/layout.md (Styling)
  • What it does: per-dashboard Theme tab (Builder → gear → Theme), CSS values: canvas background + padding; widget background + padding; widget borders color/radius/style (solid/dashed/dotted/double/none)/width; widget titles color/font size/weight/family. Reset to theme defaults. Applies in app and embeds (after publish). Account dashboard themes (Admin → Customization → Dashboard themes); built-in Cube theme sets #F9F9FB; otherwise canvas follows app light/dark/high-contrast. Divider uses widget border settings; spacer shows border/background only while editing; stacks draw no card; grids/tabs draw header bands. API theme also has primaryColor, fontFamily, controls section.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none.
  • To build on Core: theme JSON → CSS variables; ECharts theme registration from the same tokens. Effort: S.
  • Gotchas: sanitize CSS values (no url() injection).

Dashboards: builder canvas, widget sizes, arranging, responsive layouts ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/index.md
  • What it does:
    • Widget types: Charts, Text, Controls (Filter, Time granularity, Field switcher, Parent, Dynamic controls), Analysis, layout (Spacer, Divider, Stacks, Grid, Tabs).
    • Toolbar order: Charts picker, Controls, Containers, Other; click = first open spot; drag = exact placement with full-size placeholder and reflow. Narrow window: two-row toolbar.
    • Canvas insert: hover empty cell (+) → click opens insert menu (KPI list, Charts list of unused reports, controls, containers, Text/Analysis/Spacer/Divider); drag a rectangle → widget fills region (controls take width only; divider full width 1 row; Dynamic controls full width 2 rows). Existing widgets never move; disabled entries explain why. Desktop layout only.
    • 12-column grid; sizes added/min: Chart 6×8 / 2×3, KPI 3×3, Text 6×6 / 2×3, Analysis 6×10 / 2×4, controls width-only ≥2 cols, Dynamic controls 12×2 fixed. Stored undersized widgets kept.
    • Drag to move, corner to resize, neighbours shift. Responsive: Tablet layout when board <800 px, Mobile <500 px, device previews Desktop 1280 / Tablet 768 / Mobile 414; editing in Tablet/Mobile changes only that layout.
    • Multi-select (click, Shift-click, marquee), group move, group delete (confirm for non-empty containers).
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none.
  • To build on Core: replace half/full tiles with react-grid-layout (12 cols, per-breakpoint layouts — matches Cloud's layout.breakpoints/cols/rowHeight), insert menu, marquee selection. Effort: M.
  • Gotchas: per-breakpoint layouts must be stored separately (responsiveLayouts per widget in Cloud's format).

Dashboards: layout widgets (spacer, divider, stack, grid, tabs) ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/layout.md
  • What it does:
    • Spacer (edit-only visible), Divider (fixed height, horizontal resize only).
    • Stacks: horizontal (added 12×6, min 4×3) / vertical (6×12, min 2×6); children share space evenly; drag in/out; container is the unit of selection.
    • Grid: fixed child cells (no compaction/swaps; occupied drops rejected); added as square of parent column count + header row (e.g. 12×13); min 2×4; resize only crops empty rows/cols; gear menu Edit title/Resize/Delete grid; AI auto-title from contents (≤ once/min) unless user-titled.
    • Tabs: one chart or container per tab; added 6×9 (min 4×6); +, rename (dbl-click/F2/⋮), reorder, delete (keeps ≥1); AI auto-titles tabs (fallback chart name / grid title / Tab N); selected tab at publish = viewers' default; ?tab_<widget_id>=<tab_id> in URL; lazy rendering (unopened tabs don't query; opened stay loaded); Snapshot captures visible tab, print prints all tabs.
    • Nesting max 4 levels; grids/tabs never inside stacks; Dynamic controls never in containers; refused drops land below the outermost container with a named warning; delete container deletes all descendants (confirm).
  • Availability: CLOUD-ONLY. Plan: not stated (AI titling needs AI tokens).
  • Core building blocks to use: none.
  • To build on Core: recursive container model (CONTAINER widget with children), nested grid layouts, tab state in URL, lazy query on tab open. Effort: M–L.
  • Gotchas: nested react-grid-layouts and drag between them is fiddly; lazy-loading tabs saves warehouse cost.

Dashboards: chart widgets (inspect, edit in workbook, carried filters, titles) ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/charts.md
  • What it does:
    • Each chart = a workbook tab/report; Charts picker (search ≥5 tabs; Create in workbook creates a new tab and switches); chart title = tab name; Hide title/Show title.
    • Controls apply to every chart on the same semantic view; others via Controls mapping; incompatible → warning icon.
    • ⋮ menu: Inspect, Ask a follow up question, Comment on this chart, Create alert (upgrade dialog without dashboard deliveries plan), Edit in workbook.
    • Edit in workbook: dashboard filters carried as violet read-only chips (From dashboard), not saved; can be cleared for the session; deduped if identical; time-grain/field switchers not carried.
    • Inspect (Explorer+ roles): Semantic SQL tab (all with Inspect) and Generated SQL tab (needs Access SQL Runner), with current controls + cross-filters applied and listed; source-SQL charts show raw SQL only to SQL Runner roles; icon next to query errors; not on Python charts, embeds, print, version history.
  • Availability: CORE+CLOUD. Core: Generated SQL via /v1/sql (and /v1/load query echo); "Semantic SQL" corresponds to the Core SQL API dialect (MEASURE()); role gating is Cloud. Plan: Create alert requires dashboard deliveries plan (not named).
  • Core building blocks to use: /v1/sql for generated SQL; build semantic SQL text from the JSON query yourself.
  • To build on Core: inspect dialog, filter carry-over into your chart editor. Effort: S.
  • Gotchas: generated SQL may expose table names — gate it by role.

Dashboards: text widget ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/text.md
  • What it does: standard Markdown, live-preview editor via Edit, Hide title; added 6×6.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none.
  • To build on Core: react-markdown with sanitization. Effort: S.
  • Gotchas: sanitize HTML in Markdown.

Dashboards: Analysis widget (AI summary on the dashboard) ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/analysis.md
  • What it does: prompt + agent picker + Run; agent writes Markdown using every chart's data and active control values; stored as reference to the chat thread; viewers see stored analysis without re-run. Freshness leaf + Refresh; Edit analysis/Delete analysis; outdated warning when controls, SQL parameters or charts differ from run state. Re-run only via Refresh/Run or live refresh (local, not published); Refresh all charts doesn't re-run. Viewer with edit rights publishes their re-run for all; others local only (Creator Mode in embeds). Embed flag showAiWidgets; downloads/deliveries show stored text only. Empty states: not run / no prompt / not configured.
  • Availability: CLOUD-ONLY. Plan: not stated (AI).
  • Core building blocks to use: /v1/load results of each chart under current controls; /v1/meta descriptions.
  • To build on Core: LLM summarization service, stored result + input fingerprint (control state hash) for outdated detection. Effort: M.
  • Gotchas: token cost scales with chart data — summarize/sample rows before sending.

Dashboard controls: Filter (operators, date picker, Top N, selection) ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Filter)
  • What it does:
    • Configure: semantic view + dimension (or workbook calculated dimension, or SQL parameter).
    • Operators — String: is, is not, contains, not contains, starts with, not starts with, ends with, not ends with, top, bottom, is null, is not null, is empty, is not empty. Number: is, is not, >, >=, <, <=, top, bottom, null/not null. Boolean: is (true/false picker). Time: is, is not, in/not in the month/quarter/year, after, after or on, before, before or on, between, null/not null.
    • Time value popover (shared with workbook): Presets (between: Today, Yesterday, Past 7/30 days, MTD, Last month, Past 3 months, YTD, Past 12 months; single: Now, Today, Yesterday, 7/30 days ago, Start of this/last month, 3 months ago, Start of this year, 1 year ago), Relative (Last/This/Next unit, Past N, Last N whole, Next N), Fixed (From/to); Up to now / From now checkbox (remembered by browser); search field parses English ranges ("past 5 years", "last 3 full quarters", "ytd", "Q1 2026", "since 2026-01-01", "past 30 days, 1 year earlier"), ambiguous phrases give two rows; fallback to the small LLM of Auto/default agent ("H1 2026", "since Black Friday"), max two readings, named periods stored as absolute dates; "Can't read … as dates." Values stored as relative date strings (start of 1 month ago) that re-resolve each run; custom-granularity dims: calendar dates only.
    • Top N / Bottom N: keep N members by a measure after all other filters; ties broken by member value; null measure never ranks; string/number dims (not calc dims), view must have a measure; Viewers can rank by measure list; shows "10 by Count"; interplay with chart Top N fields (filter skipped with notice unless it ranks the same dimension across the whole report).
    • Selection: Enable multiple values only on string is (default multi); number is/is not multi; comparisons, substrings, booleans single; time single in UI (multi only via URL).
  • Availability: CORE+CLOUD. Core: all comparison/substring/null/date operators exist in /v1/load (equals, notEquals, contains, notContains, startsWith, notStartsWith, endsWith, notEndsWith, gt, gte, lt, lte, set, notSet, inDateRange, notInDateRange, beforeDate, beforeOrOnDate, afterDate, afterOrOnDate), relative dateRange strings (last 7 days, this month, from X to Y via chrono). Cloud: widget UI, presets, NL/LLM date parsing, Top N filter, "is empty", start of … relative values (not found in Core date parser). Plan: not stated.
  • Core building blocks to use: /v1/load filters + timeDimensions[].dateRange strings; Top N = sub-query: first /v1/load (dim, measure, order desc, limit N, other filters) then equals filter with the N values (or a SQL API subquery).
  • To build on Core: filter widget per type, operator→Core filter mapping (in the month → inDateRange [month start, month end]; is empty → equals '' OR notSet), relative-date resolver ("start of", "whole"), optional LLM date parser. Effort: M (L with NL/LLM date parsing).
  • Gotchas: the user's single global date-range override becomes just one time filter; Core's date-parser uses query timezone — pass timezone; two-step Top N is not atomic with data refresh.

Dashboard controls: filter defaults (static, user attribute, data-resolved) ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Default values)
  • What it does:
    • Default value source: Saved widget value (static; set by interacting in builder) / From user attribute (string/number single, arrays as lists; empty/null skipped; seeds initial only; URL overrides; Disabled locks it) / First/Last value of dimension (sort Natural, or Database for strings = first 100 rows) / Max/Min value by measure (measure from own view or other views sharing the same cube dimension; ties → first in dim order). Switching source discards the saved value.
    • Data-resolved defaults: resolved per viewer each open, never saved or written to URL; nulls excluded; filter becomes read-only (no manual change, no clear/reset); note after title (First value of Status, Max by Count); No value applied + warning reasons (no rows, query failed, measure removed, view lost dimension, faceted sibling unmappable); faceted filters resolve within facet scope and re-resolve on sibling change.
    • Interplay with parent presets (Reset to default vs Clear semantics; Clear leaves data-resolved filter permanently empty until preset changes).
  • Availability: CLOUD-ONLY (UI + user attributes). Core equivalent of user attributes: JWT security context. Plan: not stated (user attributes are a Cloud admin feature).
  • Core building blocks to use: security context claims (decode JWT client-side or expose via your backend) for per-user defaults; /v1/load with order + limit 1 for first/last/max/min resolution.
  • To build on Core: default-resolution step before first render (needs a "user attributes" store or JWT claims); precedence engine URL > viewer pick > parent preset > attribute > static. Effort: M.
  • Gotchas: never write personalized values into shareable URLs (Cloud explicitly avoids it); enforce row security with Core queryRewrite/access policies, not with filter defaults.

Dashboard controls: value list and faceted filters ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (The value list, Faceted filters, Sources on another semantic view)
  • What it does:
    • Value list alphabetical, paged 100 at a time (second page prefetched), infinite scroll, server-side search across all values, selected values first; switch dims list declared values in order; load-more failure → Couldn't load more values + Try again; list failure → warning sign + Couldn't load this filter's values: reason; refresh toasts.
    • Faceted: per-filter Facet switch; sources All (every sibling on same view) or picked; any condition of a sibling narrows (null/empty immediately; others once valued); date sources scope to a window (table per operator: is, in the …, after/before half-open, between, not in … outside, is not outside); now bounds resolve at list load in chart timezone; cases with nothing to scope (is not fixed date, multiple dates, multi-value substring, case-sensitive negations).
    • Facet icon with Faceted by: … tooltip (hidden sources counted, not named), Faceted by: no other filter; builder click opens config.
    • Cross-view sources need a Matching dimension (auto-suggest: same underlying column → existing mapping → same name and type; ambiguous = none); unmatched source unused (warning).
    • Cross-filters narrow faceted filters at All. Deleting the last picked source turns Facet off.
  • Availability: CORE+CLOUD. Core: value lookups are ordinary /v1/load queries (single dimension, contains search, limit/offset, sibling filters); switch dimension values from model (CubeValidator.js:833; docs say needs Core ≥1.8.19). Cloud: UI, scoping rules, matching. Plan: not stated.
  • Core building blocks to use: /v1/load {dimensions:[d], filters:[siblings…, {contains: search}], order:{d:'asc'}, limit:100, offset}; /v1/meta values for switch dims; view member origin for cross-view matching.
  • To build on Core: async paged select component; facet scoping translator. Effort: M.
  • Gotchas: value-list queries per filter per keystroke — debounce and rely on pre-aggregations for dimension-only queries.

Dashboard controls: calculated-dimension filters, SQL-parameter filters, switch dims ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Calculated dimensions, Filling a SQL parameter, Switch dimensions)
  • What it does: filters on workbook calculated dimensions (only own view, no remap, no facet, no data-resolved default, no pre-aggregations; type changes flag the control and block publish until saved). Parameter mode: fills a workbook SQL parameter (:name) in every chart whose SQL uses it, no mapping, opt-out per chart; Date parameter + End of range pairs (start_date/end_date, date_from/date_to auto-paired); URL p_<name>=<value> (plain text, relative dates allowed); publishing saves parameter defaults. switch dims list declared values in declared order.
  • Availability: CLOUD-ONLY for calculated fields and SQL parameters (workbook features); switch dimension type is CORE. Plan: not stated.
  • Core building blocks to use: Core member expressions (ad-hoc calculated dimensions via SQL API / memberExpressions), FILTER_PARAMS, SQL API queries with literal substitution for parameters.
  • To build on Core: parameter substitution in your saved SQL-API charts; ad-hoc dimension support. Effort: M.
  • Gotchas: substituting parameters into SQL text needs strict typing/escaping.

Dashboard controls: time granularity switcher ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Time granularity switcher)
  • What it does: targets one time dimension; applies granularity to every chart grouping by it. Allowed list default day–year; second/minute/hour only for TIMESTAMP/DATETIME columns; custom granularities listed first by title (unchecked by default); data-model-named builtins deduped; granularities removed from the model stay listed greyed (no longer defined) and still open if default (charts show source error). Default granularity (else report's own); From user attribute (matches granularity names case-insensitively; arrays → first allowed; invalid ignored). Period comparisons follow (Previous period, Same period previous year = 52 weeks at week; unavailable combos show empty columns titled Count (1 quarter earlier, n/a at Week) + crossed adjustments icon; custom/sub-day grains offer no comparisons; at year both collapse). Custom-grain titles shown everywhere (headers, axes, CSV).
  • Availability: CORE+CLOUD. Core: granularity on timeDimensions, custom granularities (granularities in CubeValidator.js), compareDateRange (query.js). Cloud: switcher UI, comparison presets mapping, attribute defaults. Plan: not stated.
  • Core building blocks to use: /v1/meta time dimension granularities list; compareDateRange or two queries with shifted ranges.
  • To build on Core: switcher widget, rewrite timeDimensions[].granularity for charts using the member, comparison shift logic. Effort: S–M.
  • Gotchas: must not offer sub-day grains on DATE columns — Core /v1/meta doesn't expose the SQL column type, so store it in member meta.

Dashboard controls: field switcher ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Field switcher)
  • What it does: Field type Dimension or Measure; Dimension/Measure to replace + Alternatives (same view, same kind; replaced member always offered; calc dims allowed, not time-typed ones). Default option (picked in builder; removing it from Alternatives clears default). Default granularity per option for time alternatives (Inherit from the chart default; a touched granularity switcher wins). User-attribute default (ignored if not in Alternatives). Swapped member queried under the replaced member's output name so formatting, sorting, pivots, conditional formatting survive. Applied only if both the SQL and the query description can take it; else notice "The Field switcher could not be applied to this chart" (hand-written, JOIN/UNION queries); charts without the member unchanged; period comparison switched too or dropped with notice.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: rewrite the JSON query member before /v1/load, then rename result keys back (Core has no alias option in REST; alias via SQL API AS).
  • To build on Core: query rewriter + result-key aliasing so chart config keyed on the old member keeps working. Effort: M.
  • Gotchas: formats differ between members — take format from the swapped-in member's /v1/meta entry even though the column key is the old one.

Dashboard controls: parent controls and presets (incl. viewers' own presets) ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Parent, Viewers' own parent controls)
  • What it does:
    • Dropdown of named presets (≤50; first tab Default); each preset × child (filter, time grain, field switcher; not other parents) is Set to (value constrained to child's options), Clear (not for field switchers), Reset to default (per-viewer default incl. attribute/data-resolved), Keep as-is. First tab defaults all rows to Reset; later tabs to Keep; save writes first-tab rows.
    • Several parents can drive one control; parents re-sync (keep preset if still matching, else the unique matching preset, else Pick a preset).
    • Status indicators on children: Fully / Partly / Not driven; Driven by parent section with Unmap from / Configure.
    • Default preset = picked in builder (writes children defaults); From user attribute matched by preset label (rename breaks it silently).
    • Control values changed button in builder: Reset to published defaults / Add to <parent> / Add to new Parent control (creates Presets parent with Default + Preset); complex row-fill rules; one Undo.
    • Viewers' own parent controls on published dashboards (all viewers, can't be disabled; not in embeds): same button in header; stored per viewer per dashboard server-side; strip at top or inside Dynamic controls; edit/rename/delete (confirm, no undo); presets drive added controls too; values in URL, parent not.
    • Links carry children values of a hand-picked preset, never attribute-resolved ones; parent itself has no URL param.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: none (pure control-state layer).
  • To build on Core: preset model (parent → {preset → {childId → set/clear/reset/keep + value}}), resolver integrated with defaults/URL precedence, per-viewer preset storage table. Effort: L (M without multi-parent sync and viewer presets).
  • Gotchas: the precedence rules (URL vs preset vs attribute vs static) are the hard part — write them as one pure function with tests.

Dashboard controls: Dynamic controls (viewer-added controls, promotion) ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Dynamic controls)
  • What it does: at most one per dashboard, 12×2 full width, not resizable, never in containers. Author allows types Filter / Time granularity / Field switcher and per-type field lists (All fields = live from views, new model fields appear without republish). Viewers click Add control (or Add filter etc.) → configure sidebar (no Visibility/Default/Facet), pickers exclude fields already controlled and fields hidden by member-level security; cells ¼ width (≥200 px), wrap adds 2 rows. Disabled reasons: Loading fields…, No fields to add, Every allowed field already has a control. Added controls live only in the URL (dc_<key>={"type":"FILTER|TIME_GRAIN|FIELD","config":{dimension,title,filterType,isMultipleSelectionAllowed,allowedGrains,memberKind,options,optionGrains}}). Promote to dashboard (editors; not downloads/standalone embeds): moves added controls into draft as placed controls with current values as defaults, below the widget, dedupes existing, opens builder; 30 s timeout. Works in downloads (Current), Edit in workbook, deliveries/alerts (kept in schedule), Dashboard Agent, embeds (promote only in Creator Mode), Duplicate.
  • Availability: CLOUD-ONLY. Core part: member-level security (access policies memberLevel in CubeValidator.js:905) determines which members a viewer sees in /v1/meta. Plan: not stated.
  • Core building blocks to use: /v1/meta under the viewer's security context (already filtered by access policies/public).
  • To build on Core: widget, add-control flow, URL serialization, promote-to-draft API. Effort: M.
  • Gotchas: validate dc_ params server-side against allowed fields (Cloud drops unknown keys so links can't set visibility/defaults).

Dashboard controls: clear/reset, URL state format, several filters on one field ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Clearing and resetting, Sharing the current selection, Several filters on one field)
  • What it does:
    • One action slot per control: Clear (✕) (not on field switchers or data-resolved filters) or Reset to default (↩) when changed from its published value (takes precedence); dropdown header shows both as links. Viewer actions are session-only; clear recorded in URL, reset not. Builder: Reset reverts to published; Clear removes saved default.
    • URL params (published dashboards write; everyone reads incl. embeds): f_<view>.<dim>=<JSON>, p_<param>=<value>, tg_<view>.<dim>=<grain>, ms_<view>.<replaced>=<selected>, dc_<key>=<JSON>, tab_<widget>=<tab>, plus fullscreen, autoplay, autoRefresh. Internal names, lowercase grains, custom grains by name.
    • Filter JSON: {"type": equals|not_equals|greater_than|greater_than_or_equal|less_than|less_than_or_equal|between|in_month|in_quarter|in_year|not_in_*|contains|starts_with|ends_with|not_*|is_null|is_not_null|is_empty|is_not_empty, "value": …, "startInclusive", "endInclusive", "caseSensitive"}; type omitted → filter's own condition; booleans "true"/"false"; relative values (7 days ago, start of 1 month ago); between two-element array inclusive by default; substring caseSensitive:true → LIKE vs ILIKE; lists = alternatives for is/is not, comma-joined term for substrings, invalid for comparisons; clear = {"value":[]} / tg_x= (no type).
    • Only viewer choices are written (no static/data-resolved/attribute defaults); parent presets via children; clears yes, resets no; link value wins at load; ignored when no control can honor it (unless an f_ can be placed via another view's filter or Dynamic controls, else "Unable to filter by").
    • Several filters on one field share one f_: picks/clears propagate to enabled filters with the same condition; link applies to filters with its type (or all, each under own condition; else first enabled); clear names its condition when another keeps a value; reset drops the field.
    • Same rules for cube:action:set-filter embed events and the Dashboard Agent.
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: translate URL filter JSON → Core filters (between with exclusive end → explicit timestamps in inDateRange; case-sensitive substring has no Core equivalent — Core contains is case-insensitive by default in most drivers; would need a SQL-API LIKE or a custom dimension).
  • To build on Core: URL state codec + resolver (replace the user's single global date-range override with this). Effort: M.
  • Gotchas: adopt this format verbatim — it is documented and stable, and it is what the embed/agent paths reuse.

Dashboard controls: visibility ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Visibility)
  • What it does: Visible (default), Hidden (not shown, still applied; shown in builder), Disabled (shown, locked; parents still drive; blocks f_ links unless another enabled filter on the field). Hidden values still appear in print summary (documented leak).
  • Availability: CLOUD-ONLY. Plan: not stated.
  • Core building blocks to use: for real security use Core access policies / queryRewrite, not hidden filters.
  • To build on Core: flag on control + render rules. Effort: S.
  • Gotchas: Hidden ≠ secure: URL params and API calls can override unless server-side enforced.

Dashboard controls: interaction with charts, controls mapping, incompatible controls, advanced queries ​

  • Docs: pages/docs/explore-analyze/dashboards/widgets/controls.md (Interaction with charts, Incompatible controls, Controls mapping, Charts on advanced queries)
  • What it does:
    • Auto-wiring: control applies to every chart on the control member's semantic view; other views unaffected; prompt Review…/Dismiss when adding a chart on another view with mapping suggestions.
    • Per-chart Controls mapping: toggle on/off, remap to another member of the chart's view; statuses Mapped automatically / Manually mapped (Reset) / Mapping suggestion (exact name+type, else unique case-insensitive match) / Can't map automatically; pickers restricted by kind (filters → dims; time grain → time dims; field switcher → dims or measures). Parameter filters: Fills parameter(s) cards with Disable/Enable/Edit. Workbook Agent can set mappings.
    • Incompatible: chart skips all controls of that type (filters vs time grain independently; Top N filter alone); crossed-out filter / crossed-out clock icons, click → mapping.
    • Advanced semantic queries (SQL): member filters only when the query names exactly one view; time grain/field switchers/calc-dim filters don't apply; multi-view → Member filters are currently not supported for advanced query; needs Cube Core ≥1.8.9 (else notice); any failure → unfiltered with notice; parameter filters always apply.
  • Availability: CORE+CLOUD. Core: filter injection into SQL API queries (docs state the Core ≥1.8.9 requirement — Cloud pushes dashboard filters into Core's SQL-API query path); Cloud: mapping UI and rules. Plan: not stated.
  • Core building blocks to use: /v1/meta view membership; /v1/load filter injection; SQL API (/v1/cubesql or Postgres wire) with added WHERE for SQL charts.
  • To build on Core: per-chart mapping table in dashboard JSON, auto-suggest, compatibility checks (dry-run via /v1/dry-run). Effort: M.
  • Gotchas: use Core /v1/dry-run to validate a rewritten query before showing a chart as compatible.

Summary table ​

FeatureAvailabilityPlanEffort to build on CoreDepends on
Chart panel basics / type picker / resetsCLOUD-ONLYnot statedM/v1/load, /v1/meta
Recommended chart type heuristicCLOUD-ONLYnot statedS/v1/meta aggType, result stats
AI chart generation + raw spec editorCLOUD-ONLYnot stated (AI)MLLM, /v1/meta
HTML (Handlebars) chartCLOUD-ONLYnot statedSsandboxed iframe
Bar (+Top N with Other)CLOUD-ONLYnot statedS / M (SQL Other)SQL API for Other
Line / AreaCLOUD-ONLYnot statedStimeDimensions
ScatterCLOUD-ONLYnot statedSaggType
Pie / DonutCLOUD-ONLYnot statedStotal query
FunnelCLOUD-ONLYnot statedS–M—
SankeyCLOUD-ONLYnot statedMcycle splitting
Heatmap / BoxplotCLOUD-ONLYnot statedSungrouped for boxplot
BulletCLOUD-ONLYnot statedS–Mreference bands
KPI blocksCLOUD-ONLYnot statedMcompareDateRange, format
Map (point/density/region/globe)CLOUD-ONLYnot statedM (L full)geo dims, MapLibre/ECharts geo
Table columns/pivot/width/freezeCLOUD-ONLYnot statedLgrid lib
Table row grouping / totals / subtotalsCLOUD-ONLYnot statedM–Lmulti-grain queries
Table links / bars / sparklines / imagesCORE+CLOUDnot statedMCore links, format: link/imageUrl, synthetic ___link_*_url
Table conditional formatting / color scalesCLOUD-ONLYnot statedM—
Table copy / style / borders / paginationCLOUD-ONLYnot statedS–M—
Value menu, drill down, time drill-down, a11yCORE+CLOUDnot statedMCore drillMembers, granularities
Series mapping/config, trend linesCLOUD-ONLYnot statedMecStat
Axes, reference lines/bandsCLOUD-ONLYnot statedM—
Color, palettes, stacking, legendCLOUD-ONLYnot stated (perm. for palettes)S–Mpalette store
Small multiplesCLOUD-ONLYnot statedM—
Tooltips & data labelsCLOUD-ONLY (formats from Core)not statedSCore format, ___format
Publishing / versions / revision historyCLOUD-ONLYnot statedMapp DB, optional LLM
Live updates (realtime)CLOUD-ONLYnot statedMWebSocket/SSE
Presentation mode / TV linksCLOUD-ONLYnot statedS–M—
Live refresh & freshnessCORE+CLOUDnot statedSrenewQuery, lastRefreshTime
Dashboard links & slugsCORE+CLOUDnot statedSCore links (dashboard slug)
Downloads PNG/PDF/CSV/printCLOUD-ONLYnot stated (permission)Lheadless browser, job queue
Cross-filteringCLOUD-ONLYnot statedL (M w/o highlight)/v1/load filters, view→cube mapping
Drill-throughCLOUD-ONLYnot statedMURL filter landing, slugs
Comments (incl. data-point pins)CLOUD-ONLYnot stated (admin toggle)Lcomments service, notifications
ReviewsCLOUD-ONLYnot statedLversioned reports, notifications
Dashboard AgentCLOUD-ONLYnot stated (AI)LLLM + tools over /v1/load, /v1/meta
Dashboards as codeCLOUD-ONLYnot statedS–Mown JSON schema, CI
Styling / themeCLOUD-ONLYnot statedSCSS vars, ECharts theme
Builder canvas / sizes / responsiveCLOUD-ONLYnot statedMreact-grid-layout
Layout widgets (stack/grid/tabs)CLOUD-ONLYnot statedM–Lnested layouts
Chart widget (inspect, edit in workbook)CORE+CLOUDCreate alert needs deliveries planS/v1/sql
Text widgetCLOUD-ONLYnot statedSMarkdown
Analysis widgetCLOUD-ONLYnot stated (AI)MLLM
Filter control (operators, dates, Top N)CORE+CLOUDnot statedM (L with NL dates)Core filters, dateRange
Filter defaults (attribute, data-resolved)CLOUD-ONLYnot statedMJWT claims, /v1/load
Value list & faceted filtersCORE+CLOUDnot statedM/v1/load paging, switch dims
Calc-dim / SQL-parameter filtersCLOUD-ONLY (switch dims CORE)not statedMSQL API
Time granularity switcherCORE+CLOUDnot statedS–Mgranularities, compareDateRange
Field switcherCLOUD-ONLYnot statedMquery rewrite + aliasing
Parent controls & presets (+viewer presets)CLOUD-ONLYnot statedLstate resolver, per-user storage
Dynamic controlsCLOUD-ONLYnot statedM/v1/meta under security ctx
Clear/reset, URL state, multi-filter fieldsCLOUD-ONLYnot statedMURL codec
Control visibilityCLOUD-ONLYnot statedS—
Controls mapping / incompatible / advanced queriesCORE+CLOUDnot statedM/v1/dry-run, SQL API filter injection

Counts: 54 features — CLOUD-ONLY 45, CORE+CLOUD 9, CORE 0, UNCLEAR 0 (sub-items switch dimensions, custom granularities, links, format are pure CORE model features used by these). No page in this slice states a plan tier explicitly; only gating mentioned: Create alert needs a plan with dashboard deliveries, Download data permission, Manage chart palettes permission, Access SQL Runner permission, admin toggle for comments, AI tokens for AI titles/agents.

Pages read (39) ​

  • pages/docs/explore-analyze/charts/index.md
  • pages/docs/explore-analyze/charts/custom.md
  • pages/docs/explore-analyze/charts/chart-types/index.md
  • pages/docs/explore-analyze/charts/chart-types/area.md
  • pages/docs/explore-analyze/charts/chart-types/bar.md
  • pages/docs/explore-analyze/charts/chart-types/boxplot.md
  • pages/docs/explore-analyze/charts/chart-types/bullet.md
  • pages/docs/explore-analyze/charts/chart-types/funnel.md
  • pages/docs/explore-analyze/charts/chart-types/heatmap.md
  • pages/docs/explore-analyze/charts/chart-types/html.md
  • pages/docs/explore-analyze/charts/chart-types/kpi.md
  • pages/docs/explore-analyze/charts/chart-types/line.md
  • pages/docs/explore-analyze/charts/chart-types/map.md
  • pages/docs/explore-analyze/charts/chart-types/pie.md
  • pages/docs/explore-analyze/charts/chart-types/sankey.md
  • pages/docs/explore-analyze/charts/chart-types/scatter.md
  • pages/docs/explore-analyze/charts/chart-types/table.md
  • pages/docs/explore-analyze/charts/configuration/index.md
  • pages/docs/explore-analyze/charts/configuration/axes.md
  • pages/docs/explore-analyze/charts/configuration/color-and-stacking.md
  • pages/docs/explore-analyze/charts/configuration/data-labels.md
  • pages/docs/explore-analyze/charts/configuration/series-configuration.md
  • pages/docs/explore-analyze/charts/configuration/series-mapping.md
  • pages/docs/explore-analyze/charts/configuration/small-multiples.md
  • pages/docs/explore-analyze/charts/configuration/tooltips.md
  • pages/docs/explore-analyze/dashboards/index.md
  • pages/docs/explore-analyze/dashboards/comments.md
  • pages/docs/explore-analyze/dashboards/cross-filtering.md
  • pages/docs/explore-analyze/dashboards/dashboard-agent.md
  • pages/docs/explore-analyze/dashboards/dashboards-as-code.md
  • pages/docs/explore-analyze/dashboards/drill-through.md
  • pages/docs/explore-analyze/dashboards/reviews.md
  • pages/docs/explore-analyze/dashboards/styling.md
  • pages/docs/explore-analyze/dashboards/widgets/index.md
  • pages/docs/explore-analyze/dashboards/widgets/analysis.md
  • pages/docs/explore-analyze/dashboards/widgets/charts.md
  • pages/docs/explore-analyze/dashboards/widgets/controls.md (≈132 KB, read in full in 5 parts)
  • pages/docs/explore-analyze/dashboards/widgets/layout.md
  • pages/docs/explore-analyze/dashboards/widgets/text.md