Small multiples chart reference

Small multiples examples

Contents: Use cases, Chart IDs, Minimal spec, Data, Options, Annotations, Chart IDs and common combinations, Metric stack, Sizing, Fixtures.

Facets, variance tiers and metric stacks with shared categories and computed readouts. Type grid. Aliases: facets.

Use cases

Chart IDs

Minimal spec

{
  "type": "grid",
  "data": {
    "panels": [
      {
        "id": "revenue",
        "type": "kpi",
        "data": { "label": "Revenue", "value": 120 },
        "options": { "unit": "$k" }
      },
      {
        "id": "orders",
        "type": "kpi",
        "data": { "label": "Orders", "value": 85 },
        "options": { "unit": "orders" }
      }
    ]
  },
  "options": {
    "sharedScale": false,
    "title": "Revenue is $120k and orders total 85",
    "source": "Illustrative data"
  }
}

Data

PathTypeRequiredMeaning
panels ( branch 1)arrayyesPanels in deterministic reading order.
panels[].id ( branch 1)stringyesStable panel identifier.
panels[].type ( branch 1)stringyesRegistered chart type rendered in this panel.
panels[].title ( branch 1)stringShort heading in the fixed slot above the panel.
panels[].caption ( branch 1)stringSecondary line below the panel title.
panels[].data ( branch 1)unknownyesData accepted by the registered panel chart type.
panels[].options ( branch 1)objectOptions forwarded to the child chart; inherited grid options follow the composition rules.
panels[].annotations ( branch 1)arrayChart-panel annotations, folded into the child options verbatim; validated against the child chart type's own options schema (issues at this authored path). Composition panels (text/legend) take none.
panels[].row ( branch 1)integerZero-based authored row track; omitted, panels fill the rows left to right in array order.
panels[].column ( branch 1)integerZero-based authored column track; omitted, panels fill the rows left to right in array order.
panels[].span ( branch 1)objectNumber of authored row/column tracks occupied by this panel.
panels[].span.rows ( branch 1)integerNumber of row tracks occupied by the panel.
panels[].span.columns ( branch 1)integerNumber of column tracks occupied by the panel.
panels[].align ( branch 1)objectAlignment inside the spanned cell; width/height cap non-stretch panels.
panels[].align.horizontal ( branch 1)stringHorizontal placement inside the spanned cell. One of 'stretch', 'start', 'center', 'end'.
panels[].align.vertical ( branch 1)stringVertical placement inside the spanned cell. One of 'stretch', 'start', 'center', 'end'.
panels[].align.width ( branch 1)numberWidth cap in pixels for a horizontally non-stretched panel.
panels[].align.height ( branch 1)numberHeight cap in pixels for a vertically non-stretched panel.
repeat ( branch 2)objectyesConservative v0 facet repeat declaration.
repeat.dimension ( branch 2)stringyesPlaceholder name; use it as $dimension in template strings.
repeat.values ( branch 2)arrayyesOrdered facet values to bind.
repeat.facet ( branch 2)stringSlice template.data into one panel per series or category id. Omission keeps the conservative bySlice lookup. One of 'series', 'category'.
template ( branch 2)objectyesChart specification expanded once per repeat value.
template.id ( branch 2)stringPanel id template; defaults to the slice value and may contain the dimension placeholder.
template.type ( branch 2)stringyesRegistered chart type repeated for every slice.
template.title ( branch 2)stringPanel title template; may contain the dimension placeholder.
template.caption ( branch 2)stringPanel caption template; may contain the dimension placeholder.
template.data ( branch 2)objectyesbySlice lookup, or one chart document when repeat.facet is series or category.
template.data.bySlice ( branch 2; template.data branch 1)objectyesExact slice lookup; every repeat value must have one chart-data entry.
template.data.categories ( branch 2; template.data branch 2)arrayyesSource categories; category facets keep one id per panel.
template.data.series ( branch 2; template.data branch 2)arrayyesSource series; series facets keep one plotted id per panel and copy reference series onto every panel.
template.options ( branch 2)objectOptions forwarded to the child chart; inherited grid options follow the composition rules.
template.annotations ( branch 2)arrayTemplate annotations, placeholder-substituted per slice and validated against the child chart type's own options schema (issues at template.annotations).
message ( branch 2)objectHighlighted commentary panel appended after the faceted charts. Title uses theme ink; body and bullets use inkMuted.
message.title ( branch 2)stringHeading within the text panel.
message.body ( branch 2)stringMain prose within the text panel.
message.bullets ( branch 2)arrayOrdered bullet items within the text panel.
message.tone ( branch 2)stringmessage paints the title with theme ink and body with inkMuted; muted uses inkMuted for every line. One of 'message', 'muted'.
categories ( branch 3)arrayyesOne category axis shared by every metric-stack panel.
categories[].id ( branch 3)stringyesUnique category id in display order.
categories[].label ( branch 3)stringyesCategory label drawn once below the last panel.
categories[].partial ( branch 3)booleanPeriod still running. Draw count so far provisionally; scoped outcomes are n/a.
measures ( branch 3)arrayyesRaw source values stored once. Rates, amounts per unit and readouts are computed from these values.
measures[].id ( branch 3)stringyesUnique source measure id.
measures[].label ( branch 3)stringyesSource measure label; also the stacked-column legend label.
measures[].values ( branch 3)arrayyesSource values, one per category: counts, or amounts such as spend. Null means unavailable.
panels ( branch 3)arrayyesTwo to five panels in top-down reading order.
panels[].id ( branch 3)stringyesUnique panel id; state scopes use this id.
panels[].type ( branch 3)stringyesColumns, stacked columns for a multi-measure sum, or a line with points. One of 'column', 'line'.
panels[].title ( branch 3)stringyesMeasure name in the shared readout gutter. The hover card names each value with it when the unit is a sign or code.
panels[].unit ( branch 3)stringyesMeasure unit in the readout gutter. A unit in words names each value on the hover card ('Cases per month: 800'); a sign or code such as '$' or 'EUR k' stays on the number.
panels[].measure ( branch 3)objectyesEngine-computed panel measure: a sum, a rate in percent, or an amount per unit.
panels[].measure.sum ( branch 3; panels[].measure branch 1)arrayyesMeasures added for each category. Columns stack the inputs in order.
panels[].measure.numerator ( branch 3; panels[].measure branch 2)arrayyesMeasures summed for the rate numerator.
panels[].measure.denominator ( branch 3; panels[].measure branch 2)stringyesSource measure for the rate denominator; the result is a percentage, a share of a count. For an amount per unit, such as cost per order, use ratio and per.
panels[].measure.ratio ( branch 3; panels[].measure branch 3)arrayyesMeasures added for the amount, such as spend.
panels[].measure.per ( branch 3; panels[].measure branch 3)stringyesSource measure of the units, such as orders. Each category's value is the sum of ratio divided by per, with no factor 100; it is n/a when an input is null or per is 0. A window divides the sum of ratio over its categories by the sum of per, never the mean of the category values: spend 100 and 300 on 10 and 20 orders is 13.33 per order. The change readout is the percent change of the two window values. One mark per category.
panels[].readout ( branch 3)string | objectyeschange compares grid windows; base computes a volume-weighted mature rate and remaining-per-100 span, for rate panels only. One of 'change' (or another value of its type).
panels[].readout.base ( branch 3)stringyesBase measure for the remaining-per-100 chain.
panels[].emphasis ( branch 3)booleanUse the theme accent. At most one panel may be emphasized.
panels[].divisor ( branch 3)numberDisplay divisor for sum or per-unit marks and their change span, for example 1000. The headline percent is unitless.
panels[].decimals ( branch 3)integerDecimal places of the marks and the change span. A panel with divisor and without decimals prints 0 for sums and amounts per unit and 1 for rates; a panel with neither prints by the default number rule.
panels[].keyTitle ( branch 3)stringCaption over the key of a stacked panel, such as 'By plan', in muted small text. A panel without a key prints none.
panels[].segmentShares ( branch 3)booleantrue prints each segment's share of its column, in whole percent that add up to 100, inside the segment of the base and the focus columns of a stacked panel. It applies under options.stack.variant 'focus'; the focus column prints the shares of the key. A share that has no room in its segment is left out; the key still carries it. Without the focus look, or on a panel that stacks no measures, it does nothing and warns option-ignored. Absent: no segment labels.
states ( branch 3)objectCategory states declared once, with explicit panel scopes.
states.maturing ( branch 3)objectRight-censored categories and their panel scope. One continuous band.
states.maturing.from ( branch 3)stringyesFirst maturing category, inclusive.
states.maturing.to ( branch 3)stringyesLast maturing category, inclusive.
states.maturing.panels ( branch 3)arrayyesContiguous panel ids affected by maturing outcomes.
states.maturing.label ( branch 3)stringBand caption, once. Default Not yet mature.
states.maturing.footnote ( branch 3)stringExplanation printed once in the shared footnotes.
states.partial ( branch 3)objectScope of unavailable outcomes in categories marked partial.
states.partial.panels ( branch 3)arrayyesPanels with no available partial-period outcome; those cells display n/a.
states.partial.footnote ( branch 3)stringShared partial-period note; default uses the category labels.
windows ( branch 3)objectMature comparison windows for change readouts.
windows.grain ( branch 3)stringAverage unit. Omitted: infer month from YYYY-MM, week from W01 or YYYY-W01, quarter from Q1 or YYYY-Q1, year from YYYY; otherwise category. All category ids must match. Week and quarter letters are case-insensitive. One of 'day', 'week', 'month', 'quarter', 'year'.
windows.base ( branch 3)objectyesBase comparison window.
windows.base.from ( branch 3)stringyesFirst category id, inclusive.
windows.base.to ( branch 3)stringyesLast category id, inclusive.
windows.base.label ( branch 3)stringyesDisplay label for this period or comparison window.
windows.compare ( branch 3)objectyesComparison window.
windows.compare.from ( branch 3)stringyesFirst category id, inclusive.
windows.compare.to ( branch 3)stringyesLast category id, inclusive.
windows.compare.label ( branch 3)stringyesDisplay label for this period or comparison window.
periods ( branch 3)arrayOptional period row, covering every category once in order. Comparison windows are bold; without windows, mature periods are bold.
periods[].from ( branch 3)stringyesFirst category id, inclusive.
periods[].to ( branch 3)stringyesLast category id, inclusive.
periods[].label ( branch 3)stringyesDisplay label for this period or comparison window.

Options

PathTypeValuesDefaultMeaning
stackobjectSelect metric-stack mode of sharedAxis category. Top-down panels, independent zero scales, one axis, one gutter and shared states.
stack.variantstring'focus''focus': the value-first look. The compare window is the focus: each panel prints its focus value first, in the theme role type.display, then the change and the base value ('+86% from $272'), and a stacked panel keys each measure with its share of the focus value. The focus categories take the accent, the base window a dark neutral and the other categories a light neutral; a dashed line marks the base level in each panel. In React, hover and keyboard focus move the focus to one category. Needs data.windows and readout 'change' in every panel; a stack with readout { base } panels ignores it and warns option-ignored. Absent: today's look.
stack.heightsarrayPlot heights in layout pixels, one per panel in top-down order. Use rows for proportional heights instead.
stack.columnVisibilityobjectFalse leaves a seat of the one gutter track out, with its height: unit, headline or span. The panel name stays. Hiding headline and span also drops the method line. The values stay in the marks.
stack.columnOverridesobjectSettings per generated column. Ids: gutter.
stack.columnOverrides.*.widthnumberTrack width in px. It beats the width the type would pick.
stack.columnOverrides.*.alignstring'left', 'right', 'center'Alignment of the column: its cell text and, unless headAlign is set, its head. Bars keep starting at the panel origin.
stack.columnOrderarrayOrder of whole blocks; blocks left out follow in default order. Ids: gutter, plot.
columnsinteger | arrayLegacy facet column count, or authored positive column-track weights. At most 50 rows and columns.
rowsarrayPositive row weights override content fitting. Omitted: content-fit rows use their natural height; other rows share the rest. Without columns, the row count sets placement. With category sharing, rows[i] follows panels[i] in bottom-up order; metric stacks use top-down order.
guttersobjectUniform or per-gap row/column gutters in pixels.
gutters.rowsnumber | arrayVertical spacing between row tracks in layout pixels.
gutters.columnsnumber | arrayHorizontal spacing between column tracks in layout pixels.
anchorsobjectOpt-in shared plot edges, baselines, and category columns by row, column, or all panels.
anchors.plotEdgesstring'row', 'column', 'all'Align panel plot left and right edges within column or all groups. row is accepted but ignored: side-by-side plots do not share x edges.
anchors.baselinesstring'row', 'column', 'all'Align numeric baselines between panels that cover the same rows. all aligns as row does. column is accepted and aligns nothing: stacked plots do not share a baseline.
anchors.categoriesstring'row', 'column', 'all'column and all align plot x edges and category ticks with authored column centers. row is accepted but ignored: side-by-side plots do not share x edges.
alignmentRulesarrayAuthored hairline guides bound to a panel plot edge, baseline, or category tick.
alignmentRules[].idstringUnique guide identifier within this grid.
alignmentRules[].orientationstring'horizontal', 'vertical'Guide direction; baseline anchors require horizontal, plot-edge and category anchors require vertical.
alignmentRules[].atobjectPanel anchor that fixes the guide coordinate.
alignmentRules[].at.panelIdstringExisting panel that supplies the guide coordinate.
alignmentRules[].at.anchorstring'plotLeft', 'plotRight', 'baseline', 'category'Panel plot edge, numeric baseline, or x-axis category tick used to position the guide.
alignmentRules[].at.categoryIdstringExisting x-axis category id; required for a category anchor.
alignmentRules[].fromPanelIdstringPanel whose top or left slot edge starts the guide; omission uses the grid content edge.
alignmentRules[].toPanelIdstringPanel whose bottom or right slot edge ends the guide; omission uses the grid content edge.
sharedAxisstring'category', 'none'Metric stacks imply category and use top-down order with independent scales. Otherwise default: category only for exactly one column panel plus one or more variance panels (no integrated variance); none otherwise. none honors columns and array order. category uses one column in bottom-up order with the category-axis owner at the bottom (over variance tiers, the column panel wherever it is listed); it warns if columns or panelOrder are overridden. These column/variance tiers use 4:1 plot heights unless authored tracks or a shared y scale apply.
variancePositionstring'above', 'below'Category tiers only: where the variance tiers stand. 'above' (default) puts them over the column panel, with the category labels at the bottom of the exhibit. 'below' puts them under it in authored order, with the category labels between the columns and the tiers.
sharedScalebooleanDefault: panels share one y scale in every sharedAxis mode only with evidence that they show one measure: every numeric panel names the same non-empty unit and format, the grid names a unit, or the panels come from repeat or a scaleGroup. Without that evidence each panel keeps its own scale, also when all panels are the same chart type. Set true to share panels without a unit, false for independent panel domains. Metric stacks always use independent zero scales and refuse true.
panelOrderstring'sheet', 'lastDesc', 'lastAsc', 'totalDesc', 'totalAsc'Facet panel order: 'sheet' keeps the authored array (default), 'last*' ranks by each panel's final value, 'total*' by its sum. Panels with no measurable value stay last in both directions.
reflowbooleanFacets only: a grid of more panels than a numeric columns count, on a card under 480 px, takes columns as a maximum. Where a panel drops category names for room, it draws with fewer columns, down to two, at the largest count that prints every name and that an authored height seats. Default true; false keeps the authored count.

Plus the shared options. This type does not accept format, detailFields, labels, labelPosition, valueAxis.tickStep, valueAxis.log, valueAxis.reverse, valueAxis.break, story, rounding, annotations. This type ignores animate, debug, rowLabels, categoryAxis, categoryLabels, secondaryAxis, sort, topN, bandFraction, valueAxis with an option-ignored warning.

Annotations

This type takes no annotations.

Chart IDs and common combinations

A grid draws one of four chart IDs, set by its data and options. grid.tiers: two or more panels stacked on one shared category axis, sharedAxis: 'category'; variance panels under a base chart get it by default. grid.facets: small multiples, two or more columns of panels of one chart type that fills its slot, written out in panels or repeated from one template through data.repeat. grid.metric-stack: shared measures over shared categories, with stack: {}. grid.panels: every other grid, such as a mix of chart types, a single panel or an authored layout.

The grid key merges entries of different panels only when they have the same label and draw the same color. Series ids do not matter: two panels that name a series alike and color it alike share one key entry, and the same label in two colors gives two entries.

Common combinations are recipes, not chart types. Stacked revenue over a ΔPY% variance tier is grid.tiers (fixture stacked-plus-dpy-tiered). Small multiples by region are grid.facets (fixture facet-regions, or repeat-regions from one template). Volume over completed outcomes and a weighted conversion rate is grid.metric-stack (fixture metric-stack-volume). A KPI tile beside a waffle is grid.panels (fixture kpi-and-waffle).

Metric stack

Set stack: {} to draw two to five panels in top-down order. Shared source counts produce both the marks and the left readouts. The optional period row, partial states, maturing scope and comparison windows belong to the grid. Each panel starts at zero on an independent scale.

A sum uses one or more source measures; a multi-measure column is stacked. A rate divides the summed numerator by its denominator and multiplies by 100. An amount per unit, { ratio: ["spend"], per: "orders" }, divides the summed ratio measures by the per measure, with no factor 100, and draws one mark per category. readout: "change" gives the percent change of averages per category, the percent change of the two window values of an amount per unit, or the percentage-point difference of two weighted rates. A window value of an amount per unit divides the window sums: sum(ratio) / sum(per), never the mean of the category values. readout: { base: "source-id" } gives a weighted mature step rate and a remaining-per-100 chain. The first table gives the formulas. The second table gives how a panel prints them: a panel that sets neither divisor nor decimals prints by the default number rule, and a panel that sets one of them prints as the table says.

ReadoutHeadlineSpan
change, sum measure(compare mean per category / base mean per category - 1) × 100Base mean → compare mean, divided by the panel divisor
change, amount per unit(compare window value / base window value - 1) × 100, each window value sum(ratio) / sum(per)Base window value → compare window value, divided by the panel divisor
change, rate measureCompare rate minus base rate, in percentage pointsBase rate → compare rate
{ "base": "measure-id" }, rate measure100 × sum(numerator) / sum(denominator) over mature categories100 × sum(denominator) / sum(base) → 100 × sum(numerator) / sum(base) over the same categories
ReadoutPanel without divisor and decimalsPanel with divisor or decimals
change, sum measureThe headline is a change in percent with two digits (−2.7%). The span prints the two means as a set of their own, with scale words where the column labels print them (34.51k → 33.59k).The headline is rounded to a whole percent (−3%). The span is rounded to the panel decimals, whole counts by default, as the column labels print (35 → 34 under divisor: 1000).
change, rate measureThe headline is the difference of the unrounded weighted rates, in percentage points with two digits (+1.4pp). The span prints the two unrounded rates by the default number rule (2.27% → 3.62%).The headline is the difference of the unrounded weighted rates, rounded once to the panel decimals, one by default, so it prints the digits of the span (0.85% → 0.74% reads −0.1pp). The span rounds each unrounded rate once to the panel decimals, one by default (2.3% → 3.6%).
{ "base": "measure-id" }, rate measureThe headline rates and the chain ends of every such panel in the stack form one percent set and print the unrounded rates (4.75%, 100 → 4.75, 4.75 → 0.23).The headline and the chain ends are rounded to one decimal, whatever the panel decimals (4.7%, 100 → 4.7, 4.7 → 0.2).

All sums use the source counts that draw the marks. Rates are weighted by volume, never the mean of the displayed category rates. The chain starts at 100, and 100 prints as 100. A zero denominator or a missing input gives n/a, not zero.

The stack is refused when a comparison window holds a partial or maturing category, when a partial category is in the maturing band, when the periods do not cover the categories once in order, or when a state scope skips a panel. A step chain is refused when its panels do not share one base measure and one state scope, or when a numerator exceeds its denominator.

Set data.windows.grain to day, week, month, quarter or year to name the average unit. Without it, all category ids must match YYYY-MM for month, W01 or YYYY-W01 for week, Q1 or YYYY-Q1 for quarter, or YYYY for year. Week and quarter letters are case-insensitive. Other ids use “average per category”. Window labels do not set the grain. The change header appears only with change readouts.

Use one readout method in each stack: every panel uses change, or every panel uses { base: "source-id" }. A base readout stack must form one step chain from the same base measure and use the same state scopes. Do not mix the two methods.

Default plot heights are 200 px for a single-measure column, 150 px for a stacked column, and 130 px for a line. These are minimum defaults: the engine increases them when names, units or readouts need more room. An authored fixed canvas with spare height expands the plots proportionally. stack.heights sets explicit plot heights; rows sets proportional weights based on the space the labels need.

Use stack.heights for plot heights or rows for proportional heights. The engine reserves label space and shares one readout gutter and one panel gap. Side margins stay at most 24 px; an authored margin still wins. Where the gutter leaves too little room for the values, each readout moves above its panel and the plot takes the full width. Where even the full width is too little, values and category names thin to every second category, counted back from the latest, and the latest value always shows; a hidden name keeps its tick. A stacked panel keys its measures inside its readout; when its segment values do not all fit, none show and the key says that the labels show totals. Provisional columns are hatched in their own paint inside a dashed outline. It refuses dimensions that cause collisions. The maturing band covers all gaps between its scoped panels and ends at their last baseline. reading.metricStack.readouts[] exposes the inputs, method and grain. Count changes use average-change; changes of an amount per unit use ratio-change; rate changes use rounded-rate-change; step rates use weighted-rate. Every readout uses the explicit or inferred grain described above, with category as the fallback. Fixtures metric-stack-volume and metric-stack-steps show both full exhibits.

A stacked panel takes an optional keyTitle, such as By plan, printed over its key in muted small text.

stack.variant: 'focus' turns on the value-first look. It needs data.windows and readout: "change" in every panel; a stack of { base } readouts ignores it and warns option-ignored. The compare window is the focus. Each panel's readout prints its name and unit on one line where they fit, then the value of the focus, then the change and the base value: +86% from $272. The value is the number that the right end of today's span prints, with a currency sign or % on it as the hover card prints it; a unit in words stays beside the name. Every panel prints its value in type.display (36 px on a 1.11 line by default), in the family and weight of type.figure, also above the panel and on a canvas too short for the readout. The short canvas puts the change beside the value. A stacked panel keys each measure with its share of the focus value, in whole percent that add up to 100; over a window of several categories a share divides the window sums. With segmentShares: true on a stacked panel, each segment of the base and the focus columns prints its share of the column inside the segment, in the ink that reads on its fill. These shares add up to 100 per column, and the focus column prints the shares of the key. A share without room in its segment is left out, and the key still carries it. Without the look the option does nothing and warns option-ignored. Fixture metric-stack-focus-shares shows it. The header line names the focus, the word against, a dashed key of the base line and the base window; where a window holds more than one category a second sentence names the averages. strings.stackFrom, strings.stackAgainst and strings.stackAverages replace the words. columnVisibility leaves out the unit, the change (headline) or the base value (span); the value always prints. The gutter and the panels are sized for the widest text of any focus, so they hold still when the focus moves. The baseline of each panel runs under the readout and the plot. The marks take three states: the focus categories take the accent, the base window a dark neutral, every other category a light neutral, and the focus wins where the windows overlap. A stacked column steps each state through a ramp of its own, and its key swatches show the focus ramp. A line takes one paint, the accent on the emphasis panel and the dark neutral elsewhere, with an open ring on each base category and an accent dot on each focus category; other categories print no point. A provisional mark keeps its hatch, dashed outline and hollow point. A dashed line marks the base value across the plot, over columns and under a line, and the base value prints muted 8 px left of the plot, centered on the line; a panel without a base value draws no line. The frame legend keeps only the provisional key. Only the focus categories print their values: bold ink, above the mark, on a plate in the page color that may cover the marks of other categories; labelDensity still applies. A category needs 14 px for its mark, and the width of its name where names print, so about 30 weekly columns fit beside the readout at 1,184 px. With data.periods the period row is the axis: no category prints its name, and each period label starts at its first category, muted and small, after a short tick from the last baseline, with no rule. Without periods the category names print as in the default look. Where the focus is one category, a hairline runs through every panel at its center, behind the marks. In React, hover and keyboard focus move the focus to the category under the pointer; see the React reference. Fixture metric-stack-focus shows the look.

{
  "type": "grid",
  "data": {
    "categories": [
      { "id": "jan", "label": "Jan" },
      { "id": "feb", "label": "Feb" },
      { "id": "mar", "label": "Mar" },
      { "id": "apr", "label": "Apr", "partial": true }
    ],
    "measures": [
      { "id": "started", "label": "Started", "values": [800, 1000, 1100, 250] },
      { "id": "finished", "label": "Finished", "values": [160, 170, 121, null] }
    ],
    "panels": [
      {
        "id": "volume",
        "type": "column",
        "title": "Started",
        "unit": "cases per month",
        "measure": { "sum": ["started"] },
        "readout": "change"
      },
      {
        "id": "rate",
        "type": "line",
        "title": "Completion",
        "unit": "% of started cases",
        "measure": { "numerator": ["finished"], "denominator": "started" },
        "readout": "change",
        "emphasis": true
      }
    ],
    "states": {
      "maturing": { "from": "mar", "to": "mar", "panels": ["rate"] },
      "partial": { "panels": ["rate"] }
    },
    "windows": {
      "base": { "from": "jan", "to": "jan", "label": "January" },
      "compare": { "from": "feb", "to": "feb", "label": "February" }
    }
  },
  "options": {
    "stack": {},
    "size": { "width": 900 },
    "title": "Starts rise while completion falls",
    "source": "Invented example"
  }
}

Sizing

Floor 280 × 270 px (480 px wide when a panel chart has no compact floor; when that refuses, the compact form stacks an authored grid of several columns in one column and draws down to the width its widest panel measures); fit fill.

Below the floor a render is refused with size-below-floor and the pixels it needs. measure returns the natural and comfortable size for a given spec; see Sizing in the manual.

Fixtures

IDKindUse case
stacked-plus-dpyexampleThe CFO exhibit: stacked revenue with integrated PY variance
stacked-plus-dpy-tieredexampleOpt-in scaled ΔPY% tier above stacked revenue
three-tierexampleThree tiers: actuals, ΔPY absolute, ΔPY%
weekly-actual-vs-planexampleActual vs plan by week: AC columns with PL ticks over a ΔPL tier
actual-vs-plan-calloutexampleActual vs plan by year with a callout on the year below plan, over a ΔPL tier
weekly-actual-vs-plan-variance-belowexampleActual vs plan by week with the ΔPL tier below the columns
compact-tier-slacktortureTorture: compact tiers distribute vertical slack
facet-regionsexampleFacets: four regions, 2×2
facet-regions-rankedtortureFacets ordered by last value, largest first
facet-own-scales-tiny-paneltortureTorture: sharedScale off, one panel two orders of magnitude smaller
mixed-measures-own-scalesexampleDefault scale: a count and a rate without units keep their own scales
repeat-regionsexampleRepeat shorthand: three regions with locked colors and shared scales
mixed-column-line-shared-yexampleMixed column over line panels share one y scale
single-paneltortureTorture: grid of one behaves like the chart alone
metric-ladderexampleAuthored metric ladder: one category-aligned chart over three readout panels
assessment-mapexampleAssessment table and point map share the same A–G decision identities
authored-anchor-torturetortureTorture: 2×2 authored charts exercise row baselines and column plot edges
automatic-inline-legendexampleGrid automatically places its series key on its own row under the subtitle
stacked-plus-dpy-forecastexampleActual and forecast revenue with a hatched key and a separate growth tier
facet-by-seriesexampleSmall multiples: one panel per series, shared scale, shared legend, message panel
facet-by-categoryexampleSmall multiples: one panel per category with a shared series legend
facet-regions-lastAsctortureRegions ranked by latest revenue, lowest first
facet-regions-totalDesctortureRegions ranked by cumulative revenue, highest first
facet-regions-totalAsctortureRegions ranked by cumulative revenue, lowest first
shared-baseline-comparisonexampleTwo business units share a baseline across the full grid
stacked-plot-guidesexampleStacked comparisons share plot edges and category guides
aligned-benchmark-labelexampleTwo aligned column tiers, one with a labeled benchmark inside its stack
status-programmes-hatchedtortureTwo status panels share one key that draws each hatch on its cells' ground
status-panel-hatched-keytortureA status panel in a composed grid keys its hatched states on their ground
facet-by-series-muted-messagetortureSmall multiples whose commentary panel reads as a quiet note in the muted tone
dumbbell-panel-keytorturePanel captions and a shared plan key
kpi-row-statusexampleThree content-fit KPI cards above a full-width status panel
kpi-and-waffleexampleTwo KPI cards beside a two-panel waffle: big numbers on the left, shares on a 10 by 10 grid
panels-name-own-seriesexampleFive panels each name their own series, so legend none draws no key row
nine-regions-reflowexampleNine facets in at most three columns draw in two on a 320 px card
metric-stack-volumeexampleMetric stack: volume, completed outcomes and weighted conversion by cohort
metric-stack-stepsexampleMetric stack: volume-weighted funnel steps and remaining-per-100 chain
stack-readout-partsexampleMetric stack: readout gutter without the unit and the span
stack-gutter-rightexampleMetric stack: readout gutter right of the plots, with a set width and alignment
metric-stack-per-unitexampleMetric stack: cost per order computed from spend and orders
metric-stack-focusexampleMetric stack: the focus look, with the latest week against the first
metric-stack-focus-sharesexampleMetric stack: the focus look by month, with segment shares