Skip to content

Charts Errors

ERR-ANNOTATION-INVALID: Annotation cannot be resolved against the chart

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: annotation {index}: {reason}.

Fired when an annotation does not fit the chart it is on: an anchor whose value does not match the axis column's type, an aggregate or fit the axis cannot take, a missing or unknown series, a range whose from is past its to, or text that does not render.

ERR-ANNOTATION-MARGIN-UNSUPPORTED: Annotation text needs margin a fixed-margin layout cannot reserve

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: annotation {index}'s text falls outside the plot, and this chart's layout cannot grow its margins to make room.

Fix: Set style.marks.text.position.overlay: true or move the text inside the plot.

Fired when an annotation's text would sit outside the plot on a chart whose layout keeps fixed margins, so the margin cannot grow to hold it. Annotations whose text stays inside the plot render normally.

ERR-ANNOTATION-PAYLOAD: Annotation payload the render engine cannot draw

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: annotation {index}: {reason}.

Fired by the render engine when a resolved annotation breaks the payload contract: an anchor shape its type does not take, a value of the wrong type for its axis, a trend with fewer than two samples, or text with a line break. These are checked before render, so this error is a dbt Charts bug: please report it with the board.

ERR-ANNOTATION-UNSUPPORTED: Annotations do not draw on this chart yet

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: annotations do not draw on {chart_type} charts yet.

Fix: Remove annotations: from this chart.

Fired when a chart authors annotations: but renders through a path that cannot draw them yet. The chart errors rather than render without its annotations.

ERR-AREA-ENCODING-SWAPPED: Area chart x/y encoding looks swapped

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (area): {reason} Area charts always plot x as the dimension and y as the value; there is no orientation knob to rotate an area chart, so a swapped x/y silently bakes a broken axis.

Fired when an area chart's encoding looks incorrect: either y is non-numeric (should be the measure), or x is a numeric measure with stack enabled. Area charts always plot x as the dimension and y as the value; there is no orientation knob.

ERR-AREA-LOG-SCALE-INDEPENDENT-MULTIPLES: Log-scale area and independent-scale multiples are incompatible

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (area): axis_y.scale.type: log with multiples scale: independent is not supported: the explicit domain area bakes on a log scale (to avoid a degenerate log-area rendering) is computed once from every panel's data combined, so it would apply the same domain to every panel regardless of scale: independent. Use multiples scale: shared, or drop the log scale.

Fired when an area chart authors both axis_y.scale.type: log and multiples: {scale: independent}. Area on a log scale needs an explicit baked domain to avoid a degenerate rendering (see ERR-AREA-STACKED-LOG-SCALE-NOT-SUPPORTED's sibling note), but that domain is necessarily one shared value; baking it would contradict scale: independent's promise of a per-panel domain, and suppressing it would silently reintroduce the degenerate rendering. Use scale: shared, or drop the log scale.

ERR-AREA-STACKED-LOG-SCALE-NOT-SUPPORTED: Stacked area and log scale are incompatible

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (area): `style.stack: {stack}` with axis_y.scale.type: log is not supported: a stacked band's top encodes a cumulative sum, which a log scale can't represent (the baked domain would be computed from unstacked values and clip the real stacked extent). Use `stack: none`, or drop the log scale.

Fired when a stacked area chart (style.stack: zero/normalize/center) is combined with axis_y.scale.type: log. A cumulative stack top is meaningless on a log scale. Use stack: none, or drop the log scale.

ERR-AREA-STACKED-MARK-STYLE-CLEARED: marks.area.stacked was cleared to null

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (area): `marks.area.stacked` resolved to null. Stacked and single-series area charts both need this recipe -- a single-series area takes it in full even when the chart itself isn't stacked -- but a board or chart in this chart's style cascade authored `marks.area.stacked: null` explicitly, which clears the inherited theme default instead of leaving it alone. Remove that null override.

Fired when marks.area.stacked resolves to null after the style cascade. Every built-in theme declares this key, so the only way to reach null is a board or chart explicitly authoring marks.area.stacked: null -- which clears the inherited value rather than leaving it untouched. Remove the null override.

ERR-AREA-STACKED-STROKE-INCOMPLETE: marks.area.stacked.stroke is missing, or lacks width, cap or join

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (area): `marks.area.stacked.stroke` must declare `width`, `cap` and `join`. Stacked and single-series area charts replace `marks.line.stroke` with it wholesale, so a property it omits is dropped rather than inherited and the edge falls back to SVG butt/miter, spiking each vertex. Set all three explicitly (`cap: butt` for the renderer's own default).

Fired when the area stacked recipe's stroke is null or is missing a width, cap or join, usually because a board or chart authored one of them as null. The recipe's stroke replaces the top-edge line stroke wholesale rather than merging into it, so an omitted property is not inherited. Set width, cap and join explicitly.

ERR-AXIS-COLOR-AUTO-NO-INK: Axis color 'auto' has no single series color to take

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path} is 'auto', but {reason}, so there is no one color for the axis to take. Name a color instead, or give the axis one series.

color: auto on a y axis paints its gridlines, tick labels and title in the color of the one series drawn against it. An axis that holds several series, or a series colored by a field, has no single color.

ERR-AXIS-COLUMN-REQUIRES-TABULAR-FONT: A column-forming quantitative axis needs a tabular label font

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: axis label font {family!r} does not guarantee tabular figures, but its tick ladder compacts to a shared magnitude and forms a column; the digits only stack into a column when every digit shares one advance, which a proportional font does not give, so the column would misalign silently. A quantitative axis takes its label font from the `numeral` slot (style.fonts.numeral), any other axis from the `label` slot (style.fonts.label); one of those slots, or an axis override (style.axis_y.labels.font.family on this chart, style.charts.axis_quantitative.labels.font.family on the board), carries this family.

Fix: Put the body typeface on style.fonts.body (and style.fonts.heading), and leave style.fonts.label and style.fonts.numeral on a tabular family (e.g. 'dbt Sans Tabular'). To keep a different family on the axis itself, set a tabular one on style.axis_y.labels.font.family for this chart, or on style.charts.axis_quantitative.labels.font.family to cover every chart.

Fired at resolve when a column-forming quantitative axis (a vertical ruler) resolves a shared magnitude scale but its label font is not vendor-registered as tabular. Ticks that carry no magnitude suffix are padded to the width of the one that does, so their digits stack under it; that column only holds when every digit shares a single advance, which is what a tabular board guarantees and a proportional one does not. A horizontal ruler is exempt (its ticks form no column) regardless of font.

ERR-AXIS-POSITION-WRONG-EDGE: An axis position names an edge that axis cannot take

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: `{axis}.position: {position}` names an edge the {role} axis of a {orientation} chart cannot take; it takes {allowed}. {hint}

Fired when a chart's own style places an axis on an edge it cannot reach. axis_x is the category axis and axis_y the value axis in every orientation: on a horizontal bar axis_x.position is left or right and axis_y.position is top or bottom; on every other cartesian chart axis_x.position is top or bottom and axis_y.position is left or right.

ERR-BAND-STEP-MULTI-METRIC: Band-aware step curve on a multi-metric chart

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

{chart_type} chart '{chart_id}': band-aware step curve is not supported for multi-metric (y: [...]) charts -- use a single y field or choose a different curve style.

Fired when a line or area chart with several y fields uses curve: step on a band x-axis. Use a single y field or another curve.

ERR-BAR-DUPLICATE-ROWS: Chart data has duplicate rows that require aggregation

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

{chart_type} chart {chart_id!r} requires pre-aggregated data with at most one row per plotted key ({field_list}). Found duplicate rows for {duplicate_preview}. Aggregate in the query before rendering.

Fired when a bar, line, or area chart receives data with more than one row per plotted key. These chart types require pre-aggregated data; aggregate in the query before rendering.

ERR-BAR-LOG-SCALE-NOT-SUPPORTED: Log scale is not supported on bar charts

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (bar): axis_y.scale.continuous.type: log is not supported: a bar's length encodes magnitude from zero, which a log scale makes meaningless. Switch to a line or area chart for a log scale.

Fired when a bar chart's y axis is set to axis_y.scale.continuous.type: log. A bar's length encodes magnitude from zero, which a log scale makes meaningless. Switch to a line or area chart for a log scale.

ERR-BAR-OVERLAP-CONTINUOUS-AXIS: Bar overlap on a continuous axis

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Bar chart '{chart_id}': style.overlap is not supported on a continuous {axis}-axis -- overlap is a fraction of the categorical band width, and a quantitative (or wide temporal) {axis} has no band to divide. Group the {axis} into categories or buckets, or drop the overlap setting.

Fired when style.overlap is authored on a bar chart whose categorical axis is continuous and has no band to divide.

ERR-BAR-OVERLAP-FULL-NON-UNIQUE-COLOR: overlap: full needs a color with one value per category

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Bar chart {chart_id!r}: style.overlap: full cannot lay out {series!r}, which has several values within one category; the series would stack end to end past the axis instead of overlapping. Use a color that is unique per category, a smaller overlap, or stack: zero.

Fired when a bar chart authors a full overlap (overlap: full or a fraction of 1 or more) over a color field with several values inside one category. A full overlap draws every series on top of the others, which only reads correctly when each category holds one color. Group the bars with a smaller overlap, or stack them.

ERR-BAR-OVERLAP-SERIES-COUNT: Positive bar overlap needs exactly two series

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Bar chart '{chart_id}': positive overlap is only supported for exactly 2 series (got {n_series}) -- 3+ series buries the middle one. Use 'none'/'flush', or rely on the 'auto' default.

Fired when a positive style.overlap is authored on a bar chart that does not have exactly two series.

ERR-BAR-Y-NOT-NUMERIC: Bar chart y column is not numeric

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (bar): y column {y_field!r} is not numeric. Bar charts always plot x as the category and y as the measure, regardless of orientation; use a numeric column for y.

Fired when a bar chart's y: column contains non-numeric data. Bar charts always use y as the measure axis regardless of orientation; use a numeric column for y.

ERR-BAR-Y-START-KIND: Bar y and y_start are different kinds

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: column {y_field!r} is {y_kind} but column {y_start_field!r} is {y_start_kind}. A bar's start and end sit on one value axis: make them all numeric, or all dates.

Fired when a bar's y: and y_start: columns (or a bar layer's, against the chart's own) are not the same kind. Both must be numeric, or both dates.

ERR-BAR-Y-START-NULL: Bar y_start column has an empty cell

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: bar y_start column {y_start_field!r} is empty in row {row}. Every row needs a start; write 0 for a bar that starts at zero.

Fired when a bar's or bar layer's y_start: column holds a NULL. A missing start is never read as zero: have the query write an explicit 0 for a bar that starts at zero.

ERR-BAR-ZERO-BASELINE-CROPPED: A bar chart cannot drop its zero baseline

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} sets {field_path} to false, but a bar's length is measured from zero, so a bar cropped away from it misstates the quantity (and paints nothing). Remove axis_y.scale.continuous.zero, or use `type: line` to zoom into a range.

A bar encodes its value as length from the zero baseline, so style.axis_y.scale.continuous.zero: false on a bar chart would crop the bars and misstate the values. Remove the key to keep the zero baseline, or use type: line for a zoomed range. A floating bar (y_start:) has no zero baseline and is exempt.

ERR-CATEGORY-COLOR-PALETTE-EXHAUSTED: An authored category_colors field has more values than the palette has swatches

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{value_count} values for `{field}` need a palette swatch, but the board's categorical palette has {swatch_count}. Pick a wider palette, or pin the extra values in `style.charts.category_colors.{field}` to a color outside it (a variant like `category[3].light`, or a hex).

Fired when an authored style.charts.category_colors.<field> field has more values needing a palette swatch (unpinned values plus pins naming a palette color) than the board's categorical palette has. Pins to a color outside the palette (a variant or a hex) need no swatch. Two categories must never share a swatch, so an authored field raises instead of silently declining to bind (an unauthored field just declines). Pick a wider palette, or pin the extra values to colors outside it.

ERR-CATEGORY-COLOR-PIN-CONFLICT: Two nested boards pin the same category value to different colors

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

`style.charts.category_colors.{field}` pins `{value}` to `{first_color}` in one nested board and to `{second_color}` in another. A pin applies to the whole board, so one value cannot have two colors. Pin it once, or at the root board.

Fired when two sibling nested boards pin the same value of the same field to different colors. Pins under style.charts.category_colors apply to every chart on the whole board, wherever they are authored, so the two cannot both hold. A pin on the root board wins over nested ones and is not a conflict.

ERR-CATEGORY-COLOR-PIN-DUPLICATE: Two category_colors pins name the same color

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

`style.charts.category_colors.{field}` pins both `{first_value}` and `{second_value}` to `{color}`: two categories cannot share a swatch. Give one of them a different color.

Fired when two values pinned under style.charts.category_colors.<field> resolve to the same color (case-insensitively), which would seat two categories on one swatch. Give one of the pins a different color.

ERR-CHART-CELL-TYPE-MISMATCH: A cell does not match its column's declared type

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Column {column!r} is declared {declared} but holds {value}. Cast the column in the query so its cells match its type.

Fired when a query result's cell contradicts the type its column was declared with, for example text in an integer column. Types come from the source and are never re-read from cell values, so the renderer stops instead of drawing a guess.

ERR-CHART-CHANNELS-INCOMPLETE: Chart names some of its channels but not the rest

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} ({chart_type}) names {named} but not {missing}. A family's channels are named together: {required}.

Fix: Name the rest of the set too, or name no column so the query's columns bind by position.

Fired when a chart names one of its channels (x, y, color, theta, ...) and leaves a required sibling unnamed: a y with no x, a color with no x and y. A field that names a column outside the set (layers, y_start, connect, multiples, tooltip) counts as naming one: binding the rest by position would read that column again. So does a sort, support_table or the chart's own mark labels.field (a board or theme cascade is not read) naming a column other than the measure once the query's columns fill an optional channel. Name the set, or name none of it and the query's columns bind by position.

ERR-CHART-CHANNELS-NO-QUERY: Chart names no channel and has no query to bind them from

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} ({chart_type}) names no {channels} and has no query, so there are no columns to bind by position.

Fix: Give the chart a query:.

Fired when a chart names none of its channels and has no query: positional binding reads the query's columns, and there are none. Any family that binds by position reaches it; a pie, donut or KPI names its one channel (theta:, value:) to pass instead.

ERR-CHART-CHANNELS-UNBOUND: Chart names no channel and its query's columns fit no positional shape

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} ({chart_type}) names no {channels}, so its query's columns bind by position: {shapes}. {outcome}

Fix: Name the family's channels, or select only the columns the chart plots.

Fired when a chart names none of its channels and the query's column count fits none of the family's positional shapes (for a bar, line or area: 2 columns bind x, y; 3 bind x, color, y), or, for a pie or donut, the query returned no rows to bind from. Positional binding reads column order only, dimensions first and the measure last, never a column's name or type.

ERR-CHART-MEASURE-IS-TEXT: A plotted measure is a text column

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

`{column}` is text, so it cannot be plotted as a number. Cast it to a number in the query, for example CAST({column} AS DOUBLE).

Fired when a chart plots a column as a number (a bar, line, area or wide y, a size, a pie theta, a gradient color, a layer y) and the source declares that column as text. Text whose cells look numeric is still text: the renderer never reads a number out of it.

ERR-CHART-PAINTED-NO-MARKS: Chart received rows but painted no marks

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r} received {row_count} row(s) but every mark it drew has zero width or height. Its card is {card_width}px wide, which is likely too narrow to leave the plot any room; otherwise check whether the x/y fields and scale types match the data's actual shape.

Fired when a plotting-family chart's query returns at least one row but the rendered SVG contains no mark with visible extent: every bar, line, area, point, wedge, or shape it drew is degenerate. WARN-QUERY-RETURNED-ZERO-ROWS covers the honest empty case (no rows); this covers the dishonest one: rows arrived, the renderer just didn't paint anything visible with them. The message states the card's measured width, because a card too narrow to leave the plot any room (axis labels take the width first) is a likely cause; otherwise the x/y fields and scale types do not match the data's shape.

ERR-COLOR-NULL-SERIES: Color column contains NULL values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

{chart_type} chart {chart_id!r} has {null_rows} row(s) with a NULL value in its color column {color_field!r}. A NULL category cannot be painted or named in the legend, but its rows still occupy stack space; the chart would read as bars floating off the baseline. Give every row a category in the query (e.g. COALESCE({color_field}, 'Unknown')).

Fired when the column bound to a chart's color channel contains NULL values. The renderer cannot assign a NULL a palette slot or a legend entry, so the series would consume stack space while being invisible and unattributable. Fix the grain in the query: the most common cause is a CASE with no ELSE, or an ELSE that passes the raw column through unchanged.

ERR-COLOR-TOKEN: Style color token does not resolve

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Color token in {scope} does not resolve: {reason}

Fired when a color in a style: block is a palette token (palette.slot, role.alias, role[N]) that no palette or theme role resolves: a misspelled palette, an alias or slot the palette lacks, or a role the theme does not bind. A bad token in a chart's own style names the chart, and other charts on the board render normally; one in board style names the field.

ERR-COLUMN-REF-AMBIGUOUS: A column reference matches several result columns by letter case

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{where} names column {ref!r}, which matches several result columns that differ only in letter case: {matches}. Write the column's exact spelling.

A board names a query result column ignoring letter case. The column spelled exactly as written wins, else the one column equal to it ignoring case. Fired when no column is spelled exactly as written and two or more columns equal it ignoring case (Revenue and REVENUE), so the reference cannot pick one. Write the exact spelling of the column you mean, or alias the columns apart in the query.

ERR-COLUMN-REF-DUPLICATE: Two keys name the same result column

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{where} has keys {first!r} and {second!r}, which both name result column {column!r}. Keep one.

A board names a query result column ignoring letter case, so two keys of one map (style.columns, formats:, field_labels) that differ only in case name the same column, and one would silently replace the other. Keep one key per column.

ERR-CONCAT-OVERSHOOT-NONPOSITIVE: Overshoot correction produced a non-positive pane width

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Overshoot correction produced a non-positive pane width ({new_w:.1f}px): pane width {orig_w:.1f}px minus overshoot {overshoot:.1f}px. The chart content (title, subtitle, axis labels, series labels, or legend) is wider than the available canvas ({target_width:.1f}px).

Fired when the overshoot correction algorithm for a concatenated layout produces a non-positive pane width. The chart content (title, subtitle, axis labels, series labels, or legend) is wider than the available canvas. Series labels come from the column bound to color:, and are the usual cause when that column holds long text.

ERR-CONDITIONAL-NOT-A-DATE: A conditional rule compares a date with a cell that is not one

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

A conditional rule compares column {column!r} with a date, but {value!r} is not a date or timestamp. Make the query return dates in that column, or compare with a number.

Fired when a style.conditional rule's lt, lte, gt, gte or between operand is a date and a non-null cell of its column does not parse as a date or timestamp. A date rule never silently skips such a cell.

ERR-CSS-COLOR-INVALID-AT-RENDER: A style="..." color value does not parse as exactly one color

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Color {value!r} is not a valid CSS color ({detail}). Use a hex color, a CSS named color, or transparent/none.

Fired when a value destined for a style="..." CSS declaration (a table row/cell link color, a board title's font color, or the variables strip's border color) does not parse as exactly one CSS color. Escaping alone cannot make such a value safe: a string like red; background-image:url(//evil) needs no quote or angle bracket to open a second declaration, so the value itself must be proven to be nothing but a color before it reaches the attribute.

ERR-CUSTOM-FIELDS: Custom chart channels or options do not match the template

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (custom): {reason}

Fired when a type: custom chart's channels (x, y, color, ...) or options: disagree with what its template declares in its header: an undeclared channel or option, a required one left out, a list on a channel without multiple: true, a value of the wrong type, or a color option that is not a color. A template with no header accepts no channels and no options.

ERR-CUSTOM-RENDER: Custom chart template failed to render

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r} (custom): {reason}

Fired when a type: custom chart's template fails while rendering: a Jinja runtime error, a misspelled column, param, or style key (templates use strict undefined), a column param naming a column the query did not return, or the template calling raise_error().

ERR-CUSTOM-SVG: Custom chart template produced disallowed SVG

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r} (custom): {reason}

Fired when a type: custom chart's template output is not well-formed SVG or uses a construct outside the allowlist: script, foreignObject, style, image, or animation elements; on*, role, aria-* or data-* attributes; a role-/dbt- class; a paint attribute that is not a color; an <a href> outside the link rules (board path, http, https, mailto); any other href that is not a #local reference; url(...) that is not url(#local); javascript:; a null interpolated into any attribute; nesting past 64 levels; or a DOCTYPE or ENTITY declaration. Nothing is stripped; the chart fails.

ERR-CUSTOM-TEMPLATE: Custom chart template is missing or invalid

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (custom): {reason}

Fired when a type: custom chart's template cannot be loaded: template: names no templates/<name>.svg.j2 file in the project, the board has no project to read it from, the {#--- ... ---#} header is not valid YAML or declares an unknown param type, or the Jinja source has a syntax error.

ERR-DUPLICATE-CHART-NAME: Two boards in a file declare the same chart

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Duplicate chart name {name!r}: declared in {first} and {second}. Every board in a file shares one set of chart names, so delete one if they are the same chart, or rename one and update the layouts that place it.

Fired when two boards in the same file, a board and one nested in it or two nested boards, declare the same chart name. A layout on any board in the file can place a chart declared on any other, so one declaration is enough.

ERR-ENDPOINT-LABELS-CENTER-STACK: stack: center is not supported for horizontal endpoint labels

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: stack: center is not supported for horizontal stacked bar endpoint labels — the rail anchors on the cumulative (0..Σ) axis, which a center stack (-Σ/2..+Σ/2) does not have. Use stack: zero, or set style.key.type: legend on this chart.

Fired when a horizontal stacked bar chart uses stack: center while its endpoint-label rail is forced on. The rail anchors each label at its segment's cumulative midpoint from zero; a center stack has no such axis. Use stack: zero, or turn the rail off with style.key.type: legend.

ERR-ENDPOINT-LABELS-NEGATIVE-STACK: negative values are not supported for stacked endpoint labels

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: negative values are not supported for stacked bar/area endpoint labels — they break the cumulative-midpoint computation. Set style.key.type: legend on this chart.

Fired when a stacked bar or area chart's data carries a negative measure while its endpoint-label rail is visible. The rail anchors each label at its segment's cumulative midpoint, a computation that assumes every segment in the stack contributes in the same direction; a negative value crosses zero and breaks it. Turn the rail off with style.key.type: legend.

ERR-ENDPOINT-LABELS-UNORDERABLE-SORT: sort by a non-numeric column cannot be combined with stacked endpoint labels

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: chart.sort by {sort_by!r} cannot be combined with stacked bar endpoint labels. The rail places its labels from the order the sorted axis draws, and dbt Charts confirms that order only for a column carrying numeric values. Sort by a measure instead, or set style.key.type: legend on this chart.

Fired when a stacked bar chart authors sort: by a column that carries no numeric values while its endpoint-label rail is visible. The rail places its labels from the order the sorted axis draws (a vertical rail anchors each series at its own last drawn column, a horizontal one anchors every series on the top row), so it has to know that order before the chart renders. dbt Charts confirms it only for a numeric sort column, and labels placed from the wrong order name series in the wrong place, which is worse than a legend. Sort by a measure, or turn the rail off with style.key.type: legend.

ERR-ENGINE-NEEDS-DATA: the render engine was given no result for a query

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

The render engine was given no result for the query {query}

Fired when the Rust render engine draws a chart whose query has neither a result nor an execute error in the run it was given. The host runs every query before it renders, so this names a host that did not, not a mistake in the board.

ERR-ENGINE-REFUSED: the render engine cannot draw this chart

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

The render engine cannot draw this chart, and retrying the same YAML fails the same way: {message}

Fix: Change or remove the setting the message names, or use a chart type or option the engine draws.

Fired when the Rust render engine refuses a chart, either a shape it does not model yet or a value its own validation rejects. The same YAML always refuses the same way.

ERR-FIELD-LABELS-FIELD-NOT-FOUND: field_labels key names no column the chart reads

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

field_labels key(s) {fields} name no column of the chart's query. Available columns: {available}.

Fired when a field_labels key is neither a column of the chart's query result nor a field one of its layers names. The label would never paint. Check for a typo; letter case does not matter.

ERR-FIELD-LABELS-WIDE-COLLISION: field_labels gives two wide measures the same label

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

field_labels makes measures {measures} of `y:` share the label {label!r}, so their series cannot be told apart.

Fired when a field_labels entry for a y: [...] measure equals another measure's label. Derived labels fall back to the raw column name on a collision; an authored label never does. Give each measure distinct text.

ERR-FONT-REGISTRY: style.fonts entries do not resolve

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{message}

Fired when style.fonts entries extend one another in a cycle (a extends b extends a; the message names the path), when heading or section sets or inherits a size (they take the sizes ramp, never size), or when any other font sets sizes. Break the cycle, extend a font that sets no size, or use the field the font takes.

ERR-FONT-UNKNOWN: Font name is not an entry in style.fonts

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{message}

Fired when a font slot or a style.fonts entry names a font (font: label, font: {extends: label}, fonts.h2: {extends: heading}) that style.fonts does not define. The message lists the known names. Define the font under style.fonts, or fix the name.

ERR-FORMAT-AFFIX-NOMINAL-AXIS-UNSUPPORTED: A FormatConfig prefix/suffix/notation cannot reach a categorical axis

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path} authors a prefix/suffix/notation, but the {axis} channel resolves to a {channel_type} scale, whose tick labels paint from the plain format string. Drop the prefix/suffix/notation, or author a plain spec.

An affix applies to a quantitative axis only. A categorical (nominal or ordinal) axis paints its tick labels from the plain format string, so a prefix, suffix or notation there cannot paint. Remove it, or author the affix on the measure axis.

ERR-FORMAT-AFFIX-TIME-UNSUPPORTED: A FormatConfig prefix/suffix/notation is a number-format feature only

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format at {field_path} combines a prefix/suffix/notation with time-format spec {spec!r}. A temporal axis paints through a date formatter that has no place for an affix. Drop the prefix/suffix/notation, or move a prefix/suffix to a number slot, a KPI value, or a table column; notation never applies to a date.

A prefix, suffix or notation next to a strftime spec ('%b %Y') is rejected on a temporal axis's format: it paints through a date formatter, which has no place for an affix. Author a prefix/suffix on a number slot (axis_y.labels.format), or on a KPI value or table column format, which paint it around the date (FY Jan 2026). notation only affects an SI number spec; it does nothing to a date anywhere, so drop it.

ERR-FORMAT-ALIAS-CYCLE: style.formats aliases point at each other in a circle

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

style.formats.{name} leads into a circle: {chain}. Give one of them a d3 spec of its own.

A style.formats entry whose target is another entry's name (currency: currency_whole) resolves through that entry. When the entries lead around a circle, no format is ever reached. Break the circle by giving one entry a literal d3 spec.

ERR-FORMAT-GRAIN-NAME-NOT-REDEFINED: An engine date grain name used as a format without being redefined

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format {spec!r} at {field_path} names the engine's own date axis labels. Replace {spec!r} with the strftime spec "{replacement}". To relabel that grain on every chart instead, redefine it in `style.formats` (`{spec}: "{replacement}"`).

date_year, date_quarter, date_month and date_week mean the engine's own labels for a grain, which no single format expresses. They only take effect once a board redefines one in style.formats; used in a slot without that, the name would silently print something else, so it is rejected.

ERR-FORMAT-INVALID: Format spec is not a predefined name, a style.formats alias, or a valid d3-format/d3-time-format spec

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Unknown {kind_noun} format {spec!r} at {field_path}: {explanation}

Fired when an authored format: string is not one of the engine's predefined format names (e.g. currency, number, percent_number), not a key defined in style.formats, and fails to parse as a d3-format spec. Check for typos against the predefined names or your style.formats keys, or use a valid d3-format spec (https://d3js.org/d3-format). In a slot that accepts a raw strftime spec (%b %Y), the same code also fires for a directive the engine does not implement (%K); the message names the accepted directives.

ERR-FORMAT-KIND-MISMATCH: A redefined format name has the wrong kind

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format {spec!r} at {field_path} is not a {kind} format. This name takes only a {kind} spec; the engine's {kind} names are: {available}. {escape_hatch}

Fired when style.formats redefines an engine format name as a spec of the other kind: a number name (currency, percent) must stay a number spec and a date name (date_short) a strftime spec, because every slot that reads the name expects its kind. A number spec baked onto a date axis paints garbage tick labels rather than failing. A plain format: slot is judged by the column it paints and takes either.

ERR-FORMAT-NATIVE-IN-VEGA-SLOT: Native formatter used in a chart format slot

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format {spec!r} at {field_path} is a native formatter with no d3 spec form and cannot be used in chart slots (axis labels, mark value labels, support_table, heatmap and map tooltips). Move it to a table cell (or a KPI value, for the percent names), or transform the value in the query to match a plain d3 spec (for a whole-number percent, divide by 100 and then use a d3 percent spec such as ".1%"). Valid alternatives: {available}.

Fired when a native name appears in a chart format slot it cannot paint: percent_number, percent_number_delta and percentage_points_delta anywhere a chart paints (axis label, mark value-label format), and every native (duration and bytes too) in a support_table format or a heatmap or map tooltip. These names bypass d3 entirely and are only valid in Python-rendered slots (KPI headline and table cells). To keep the value in a chart slot, transform it in the query to match a plain d3 spec: for a whole-number percent, divide by 100 and then use a d3 percent spec such as .1%.

ERR-FORMAT-SIGN-BEFORE-ANCHORED-PREFIX: A sign cannot lead a prefix that paints on one value only

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format at {field_path} sets sign_placement: before_prefix, but its prefix is anchored on one value: the anchor would read '−EUR 50' beside a bare '−40'. Drop sign_placement (the anchor then reads 'EUR −50'), or set repeat: every.

Where an authored prefix paints on one value of an axis (repeat: anchor, or that surface's default), the sign follows the prefix (EUR −50, €−50) so the anchor's digits line up with the bare −40 beside it. sign_placement: before_prefix there is rejected; drop it, or set repeat: every to put the prefix on every value.

ERR-FORMAT-SIGN-PLACEMENT-TABLE-UNSUPPORTED: A table column keeps the sign with the digits

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format at {field_path} sets sign_placement, but a table column paints its prefix in its own lane and keeps the sign with the digits ('€  −500'). Drop sign_placement from this column's format.

A table column paints the prefix in a lane of its own, aligned down the column, and the sign beside the digits (€ −500), so sign_placement has nothing to move there and is rejected. Drop it, or give the column a format without it.

ERR-FORMAT-TEXT-IN-VEGA-SLOT: Text format name used in a chart format slot

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format {spec!r} at {field_path} is a text format and cannot be used in chart slots (axis labels, mark value labels, support_table). Use it on a table column or KPI value; a number or date slot takes a number or time name or a d3 spec.

Fired when email or url appears in a chart slot. They name text a table cell or KPI value links, and have no number or date spec to apply.

ERR-FORMAT-TEXT-REDEFINED: A text format name cannot be redefined

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

`{field_path}` redefines the engine's text format {name!r}. {name!r} is a text format with no spec; it cannot be redefined.

Fired when style.formats has a key named email or url. Those names format a value as itself and mark the column as an email address or a web URL, so a table cell or KPI value can link it. They carry no spec for an alias to replace. Pick another alias name for your own spec.

ERR-FORMAT-TIME-DIRECTIVE-UNSUPPORTED: strftime directive in a chart time format cannot be measured

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Format {spec!r} at {field_path} uses {directives}, which dbt Charts cannot render identically to what the axis paints: either it is not part of d3-time-format's directive set at all (the axis paints the literal letter), or Python renders it through the host's C locale or local timezone rather than d3's UTC/en-US output. This slot is baked onto the axis, whose label width is also measured from this same spec -- a mismatch here is a wrong render that looks right until the label overlaps its neighbor. Supported directives: {available}.

Fired when an authored axis time slot (an axis labels.format) uses a strftime directive dbt Charts cannot render byte-identical to what d3's utcFormat paints. %C/%k/%l/%z and most other letters are not d3-time-format grammar at all -- the axis paints the literal letter, not a computed value. %Z is real d3 grammar too but empty on a naive datetime, unlike d3's +0000-style offset. %s is real d3 grammar but Python's value follows the host's local timezone rather than a true UTC epoch count; %Q (epoch milliseconds) is the supported equivalent. A format string outside an axis slot (a table column, the footer timestamp) is unaffected -- those render through Python directly, so no measure-vs-paint divergence is possible there.

ERR-FUNNEL-BAND-WIDTH-TOO-THIN: Funnel bars are not thicker than their ribbons

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (funnel): style.marks.bar.band_width is {band_width}. A funnel's bars must be thicker than its ribbons, so band_width must be above 0.5; raise it, or delete it to take the funnel's default.

Fired when a funnel's resolved style.marks.bar.band_width is 0.5 or less. A funnel's bars must be thicker than the ribbons joining them, so use a band_width above 0.5.

ERR-FUNNEL-LABEL-POSITION: A funnel places its labels on their marks

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (funnel): style.marks.bar.labels.position is {position}, but a funnel places its labels on their marks: centered on a bar, or just outside one too thin to hold the label. Delete the key, or set it to `middle`.

Fired when a type: funnel chart authors style.marks.bar.labels.position other than middle. A funnel places each label on its own mark, so no other position can take effect.

ERR-FUNNEL-MULTIPLE-MEASURES: A funnel draws one measure

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (funnel): y is a list, but a funnel draws one measure's stages. Name a single column in `y:`, and use `color:` to compare cohorts.

Fired when a type: funnel chart authors y: as a list. A funnel draws the stages of one measure; use color: to draw one funnel per cohort.

ERR-FUNNEL-VERTICAL: A funnel is drawn horizontally

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (funnel): style.orientation is vertical, but a funnel is drawn horizontally. For a vertical one, use `type: bar` with `style.stack: center`.

Fired when a type: funnel chart authors style.orientation: vertical.

ERR-GAP-FILL-BUCKET-COLLISION: Two rows collapse to the same gap-fill bucket

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Rows with {x_field!r} values {value_a!r} and {value_b!r} both collapse to the {time_unit!r} bucket {bucket!r}{dim_desc}. Aggregate to {time_unit} grain in the query before rendering.

Fired when gap-filling an ordinal bucketed-time axis finds two rows whose x-values fall inside the same bucket: two timestamps on one calendar day under yearmonthdate, or a finer-grained series under a coarser authored time_unit (monthly rows under yearquarter, daily rows under yearmonth). A coarser grain places rows in buckets; it does not combine them, and a last-wins merge would silently discard all but one. Aggregate to the bucket grain in the query before rendering.

ERR-GEO-PROJECTION-REQUIRED: A map has no projection and no geo source to take one from

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} is a {chart_type} with no {field_path}, and its geo source (if any) sets none. Set `projection:` (for example `projection: mercator`) or set `geo_source:` to a source that has one. See {maps_docs_url} for the available projections.

A map is drawn through a projection, and dbt Charts picks none on its own. A built-in geo_source (us-states, world-countries, ...) carries the projection suited to its region; a chart with no such source, such as a point_map without a basemap or a geoshape read from a raw URL, must say which projection to use. Set projection: to one of Vega's projection names (mercator, albersUsa, ...), or to an object with type plus parameters like center and scale.

ERR-GEO-SOURCE-UNAVAILABLE: Map geometry could not be loaded

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Map geometry {source!r} could not be loaded: {reason}

Fired when a map's geo source is not a bundled map and its URL could not be fetched, was larger than the size cap, or did not hold a JSON object (TopoJSON or GeoJSON). Check the URL is reachable from where dbt Charts runs; the built-in us-states, us-counties and world-countries sources need no network.

ERR-GEOSHAPE-SHADING-WITHOUT-LOOKUP: A geoshape shades from a column but has no lookup

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Geoshape shades from column {value_field!r}, but {field_path} is not set, so nothing joins the data to the map. Set `lookup:` to the data column that matches the geo source's {geo_join_key!r} key.

A choropleth shades each region by joining a data column to the geo source's key property. value: (or a data-driven color:) without lookup: has nothing to join on and would render an unshaded base map. Set lookup: to the column holding the region identifiers, or drop value:/color: to draw a plain base map.

ERR-HEATMAP-COLOR-NO-VALUES: heatmap color field holds no numbers

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

The heatmap color field {field!r} holds no numeric value, so its gradient has nothing to span. To fix: color by a column that holds numbers, or by a category column.

Fired when a heatmap's gradient color field has no numeric value in any row; the legend would otherwise label NaN and no cell would be filled.

ERR-HISTOGRAM-NON-NUMERIC: Histogram x field is not numeric

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Histogram chart {chart_id!r} requires a numeric x field for binning, but {field!r} is {vl_type!r}. Use a quantitative (numeric) column as x.

Fired when a histogram chart's x field is not numeric (quantitative). Histograms bin values into ranges, which requires a numeric column. Use a quantitative column as x.

ERR-HISTOGRAM-PREAGGREGATED: Histogram data looks pre-aggregated, not raw rows

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Histogram chart {chart_id!r} received data where {field!r} forms a gapless run of whole numbers alongside unused numeric column(s) {count_fields}: this looks like pre-aggregated data (one row per bucket, e.g. `GROUP BY {field}`), not the raw, ungrouped rows a histogram bins itself. A histogram would bin and count these already-counted rows again, silently discarding whatever real measure they carry. Use `type: bar` with `x: {field}` and one of {count_fields} as `y` to chart pre-aggregated data instead.

Fired when a histogram chart receives data where its x field forms a gapless run of whole numbers alongside an unused numeric column, the shape of already-aggregated, one-row-per-bucket data. Histograms bin and count raw, ungrouped rows themselves; pre-aggregated data silently produces a wrong, miscounted histogram instead of erroring. Aggregate in the query and use type: bar instead.

ERR-IMAGE-REF-UNRESOLVED: an image reference could not be resolved

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

image {ref!r} could not be resolved: {reason}

Fired when an image in a text: block, a title, or a callout message or title cannot be embedded. A relative path resolves against the directory of the file it is written in, and a path starting with / against the project's charts/ directory; this fires when that path does not exist, escapes the project root, carries an unsupported file suffix (a ?query or #fragment included), the render has no project or the content no location to resolve it against, a Jinja template renders it (a project image path is written out; a template may put {% if %} around whole images), or the image's own content is malformed. An http(s):// reference is never fetched or resolved, and never raises this code. The text around a bad image still renders, with an error marker where the image was.

ERR-INPUT-INVALID: Invalid render input

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

{message}

Fired when the render layer receives input data that fails a structural check. The message carries the specific validation error.

ERR-KPI-CONDITIONAL-AGGREGATE: KPI conditional rule takes an aggregate function

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

KPI chart {chart_id!r}: style.conditional.{column} compares to an aggregate function, but a KPI reads one row, so there is nothing to aggregate. Compare to a literal value.

Fired when a KPI's style.conditional rule compares its column to an aggregate function (an fn operand such as max). A KPI reads one row, so a rule names a literal value; aggregate operands belong to table and mark conditionals.

ERR-KPI-FORMAT-KIND-MISMATCH: KPI support format does not match a temporal value

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

KPI chart {chart_id!r} support value is a date/time, but its format {spec!r} is not a date format. Use date_short, a strftime spec via a style.formats alias, or remove format: to use date_short.

Fired when a KPI's style.support.format is a number format (not date_short, time_short, or a style.formats alias resolving to a strftime spec) and support.value is a date/datetime column. Unlike the headline value's format, which falls back to date_short, a support format mismatch always fails.

ERR-KPI-MULTIROW: KPI query returned more than one row

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

KPI chart {chart_id!r} expects exactly 1 row, got {row_count}. Use a query that returns a single row (e.g. SELECT SUM(...) or LIMIT 1).

Fired when a KPI chart's query returns more than one row. KPI charts display exactly one value; use a query that returns a single row (e.g. SELECT SUM(...) or LIMIT 1).

ERR-KPI-NO-DATA: KPI query returned no rows

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

KPI chart {chart_id!r} has no data: its query returned 0 rows.

Fired when a KPI chart's query returns zero rows. A KPI displays exactly one value, so an empty result has nothing to show. Make the query return one row, for example an aggregate without a GROUP BY.

ERR-KPI-TEMPORAL-FORMAT-INVALID: KPI temporal format spec could not be applied

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

KPI chart {chart_id!r} could not format value {cell!r} with spec {spec!r}: {reason}

Fired when a KPI's resolved date/time format spec is itself invalid (an unknown strftime directive) or the cell's value cannot be parsed as a calendar date/time (e.g. an out-of-range hour in an ISO timestamp string).

ERR-KPI-VALUE-COLUMN-NOT-FOUND: KPI value names a column not in the query result

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

KPI chart {chart_id!r}: value column {value_column!r} not found in the query result. Channels are always column references; constant values come from the query. For a string status value, add `rows: [{{status: {value_column!r}}}]` to the query and set `value: status`. For a numeric literal, add `rows: [{{count: <value>}}]` and set `value: count`.

Fired when a KPI's value (or a support value) names a column that is not in the query result row. Chart channels are column references, never literals, so a constant must come from the query itself.

ERR-LABEL-FORMAT-AXIS-MISMATCH: a non-time axis format needs numeric tick values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.{setting} ({fmt!r}) cannot be read on this axis: {field!r} holds non-numeric tick labels. {remedy}

Fired when style.axis_x.labels.format, style.axis_y.labels.format or style.axis_y.mirror.format is anything but a d3 time spec on an axis whose field resolves to nominal, ordinal or temporal. All three matter: nominal is a plain category column, ordinal covers the date-like buckets (2024-01, Q1 2024, FY2024) that are still band-scale strings, and temporal is a real date/time field. On a band scale every tick becomes NaN rather than failing; on a temporal one it reads the spec as a time spec instead and paints its literal text ($,.0f) across the axis. Either way it raises here now. A horizontal bar is the case worth calling out: its axis_x addresses the categories, which the rotation draws down the left edge, so an author formatting what looks like the value axis reaches the wrong channel. The measure is axis_y in both orientations; on a heatmap the value is the color channel and neither axis carries it; on a scatter dot plot the measure is axis_x instead, since the categorical channel there is axis_y. Numeric categories on a band scale are NOT gated: they format cleanly, so nothing distinguishes an intended format from a misaddressed one — a temporal axis has no such exemption, since no reading of a number format over dates was ever the author's intent.

ERR-LABEL-TEMPLATE-ACCOUNTING-PARENS: A label with a secondary value cannot use the accounting format

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: the label template at {field_path} prints more than one value and formats one with {spec!r}, which wraps a negative in parens. The secondary value is written in parens, so that would read as ((8,774)). Drop the `(` sign flag from the format.

Fired when a bar or ribbon label template prints more than one value and any value's format uses the accounting-parens sign flag (.

ERR-LABEL-VALUES-INVALID-DATE: labels.values entry is not a valid ISO date

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.axis_x.labels.values entries must be ISO date or datetime strings (e.g. '2024-01-01') or date/datetime objects; got {value!r}.

Fired when an entry in style.axis_x.labels.values cannot be parsed as an ISO date or datetime. Use ISO date strings (e.g. '2024-01-01') or date/datetime objects.

ERR-LABEL-VALUES-NOT-TEMPORAL: labels.values requires a temporal x-axis

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.axis_x.labels.values isn't usable on {field!r}: {cause}. {remedy}

Fired when style.axis_x.labels.values is set on an x-axis that can't honor it: either the x-axis values aren't valid ISO dates or datetime objects, or the chart's horizontal-bar categorical axis never applies label filtering regardless of date format.

ERR-LABELS-ANCHOR-UNSUPPORTED: labels.visible anchors need the chart's own series

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} sets {field_path} to anchors that pick marks from each series, which is not supported on {where}. Use `true` to label every mark.

first, last, min and max on point, line or bar value labels print those marks of each series. A line, area or scatter layer over a line, area or bar chart takes them along the chart's x. A scatter chart has no ordered series, so neither it nor its layers take an anchor, and a bar layer takes none. A bar chart has a first and last bar only on a time axis; a categorical axis takes min and max. A grouped bar takes none, and a stacked bar's anchors need stack: zero, no labels.field and no visible total_label. Set visible: true, use min or max, or remove the key.

ERR-LABELS-FIELD-NOT-FOUND: labels.field names a column not in the query result

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: labels.field {field!r} on {source} names a column not present in its data. Available columns: {available}.

Fired when labels.field names a column that is not present in the query result. source identifies which slot fired: the base chart's own labels, or a specific overlay layer (by position, type, and query), since a chart's overlay layers: can each carry their own labels.field. Check the column name against the actual columns returned by that slot's query.

ERR-LAYER-AREA-SPLIT-HORIZONTAL-BASE: an area layer needs a single-series or vertical base chart

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: an area layer over a horizontal bar that is split by color or stacked has no meaningful shape: the area's stack runs along the bar's category axis. Use a line layer, or set `style.orientation: vertical`.

Fired when a chart with style.orientation: horizontal and a color-split or stacked base authors an area layer. The layer's stack groups by the color the base shares, along the axis the horizontal base uses for its categories, so the area paints as a skewed ribbon over the wrong axis.

ERR-LAYER-AXIS-POSITION-ENDPOINT-LABELS: axis_y.position on a layer cannot be combined with endpoint labels

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: style.key.type: direct is not supported on a layered chart whose layers pin an explicit axis_y.position — the label rail anchors on one shared y-scale, and a dual-axis layer renders on a different one. Remove the per-layer axis_y.position override, or set style.key.type: legend on this chart.

Fired when a layered chart's endpoint-label rail is visible (authored or theme-set) while one of its layers pins its own axis_y.position. The rail anchors every layer's labels on the base chart's single shared y-scale; a layer with a pinned axis_y.position is a genuine dual-axis layer rendering on a different scale, which the rail has no way to represent. Remove the per-layer axis_y.position, or turn the rail off with style.key.type: legend.

ERR-LAYER-AXIS-POSITION-ORIENTATION: axis_y.position on a layer needs a vertical base chart

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: a layer's `axis_y.position` names a left or right side, and `style.orientation: horizontal` measures along the horizontal axis, whose sides are top and bottom. Drop `axis_y.position`, or set `style.orientation: vertical`.

Fired when a layer pins axis_y.position on a chart whose base is horizontal. The resolved model always measures on y and carries its category on x; a horizontal bar paints that same model with the pair swapped, so its measure axis runs horizontally and has no left or right side to pin a second axis to. Whether left/right should map onto bottom/top is a design decision nobody has taken, so this refuses rather than drawing the layer against a side the author did not ask for.

ERR-LAYER-AXIS-STYLE-WITHOUT-POSITION: A layer styles a y axis it does not have

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path} sets a color or grid style, but no layer on this chart pins `axis_y.position`, so every layer shares the base chart's y axis. Pin `axis_y.position` on a layer to give it its own axis, or style the shared axis under `style.axis_y`.

A layer's axis_y.color and its axis_y.grid color, width, dash and opacity style that layer's own y axis, which exists only once some layer pins a side.

ERR-LAYER-AXIS-TITLE-WITHOUT-POSITION: A layer's y-axis title has no axis of its own to land on

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path} sets a title, but no layer on this chart pins `axis_y.position`, so every layer shares the base chart's y axis and a layer title has nowhere to go. Pin `axis_y.position` on a layer of a vertical base chart to give it its own axis, or drop the layer `axis_y.title`.

A layer's axis_y.title names that layer's own y axis. A layer only gets its own axis when some layer pins axis_y.position to a side; until then all layers share the base chart's axis, which has a single title slot that several layers could claim. Pin a side to split the axes, or remove the layer title.

ERR-LAYER-BASELINE-ON-DATE-MEASURE: A bar or area layer has no baseline on a date axis

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path} has type {layer_type}, which grows from a baseline, but this bar's value axis holds dates, which have none. Give a bar layer a `y_start` to span two dates, or plot the dates as a `scatter` or `line` layer.

A bar between two date columns puts dates on its value axis. A layer that grows from a zero baseline (a bar without y_start, or an area) has no zero on it, so it is refused. A layer pinned to its own axis with axis_y.position keeps its own numeric scale.

ERR-LAYER-COLOR-ALL-NULL: A layer's color column holds no values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: layer {layer_index} is colored by {color_field!r}, which is null in every row, so there is nothing to color by. Fill the column, or drop `color:` from the layer.

A layer colored by a column with no values has an empty color scale. An empty scale builds a legend of NaN ticks or collapses the whole chart, so the layer is refused by name.

ERR-LAYER-LABEL-COLLISION: Layer label collides with an existing color scale entry

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

layer label {label!r} collides with an existing color scale entry. To fix: give this layer (or the colliding series) a distinct label:.

Fired when a layer's label equals an existing color scale entry on a chart whose endpoint-label rail or field color would silently merge them.

ERR-LAYER-MIXED-AXES-ON-DATE-MEASURE: Layers over a date axis cannot mix pinned and unpinned sides

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path}: this bar's value axis holds dates, and some layers pin `axis_y.position` while others do not. A pinned layer gets a numeric scale of its own, so the others' dates would have nowhere to draw. Pin every layer, or none.

Layers over a date-measure bar share its date axis unless one pins a side. Pinning makes the layers' scales independent, and a date column cannot ride a numeric one.

ERR-LAYER-OUTSIDE-PINNED-DOMAIN: A line layer lies wholly outside the chart's pinned y domain

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} pins axis_y.scale.continuous.domain={domain!r}, but {layer} has values only from {low} to {high}, so none of it can be drawn. Widen or drop the chart's domain.

Fired when a chart pins axis_y.scale.continuous.domain and a line layer on the same y axis has every value outside that range. The layer would paint off the plot, leaving it blank. Widen or drop the chart-level domain.

ERR-LAYER-STEP-ORIENTATION: curve: step on a layer needs a vertical base chart

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: a layer's `curve: step` builds its band offset along the horizontal axis, which `style.orientation: horizontal` uses for the measure. Drop `curve: step` on the layer, or set `style.orientation: vertical`.

Fired when a layer authors style.marks.line.curve: step on a chart whose base is horizontal. The band-aware step transform doubles each row to its band edges and separates them with an xOffset scale sized by bandwidth('x'): the channel a horizontal base measures on rather than the one it bands. Refused rather than offsetting the layer along an axis that has no bands to measure.

ERR-LAYER-X-DOMAIN-MISMATCH: Layer x does not share the base's discrete-label domain

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

chart '{chart_id}': layer x '{x_field}' resolved to a {layer_type} scale, but the base x '{base_field}' is {base_type} -- layers sharing the x axis with the base must resolve to the same discrete-label domain.

Fired when a layer's x field resolves to a type that cannot share the base's discrete x domain.

ERR-LAYER-X-NOT-QUANTITATIVE: Layer x resolved to a non-quantitative scale under a quantitative base

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

chart '{chart_id}': layer x '{x_field}' resolved to a {layer_type} scale, but the base x '{base_field}' is {base_type} -- a layer sharing the x axis with a quantitative base must itself resolve to a quantitative type.

Fired when a layer's x field is not quantitative while the base x axis is.

ERR-LAYER-Y-KIND-MISMATCH: A layer's y column does not fit the axis it plots on

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path}: column {y_field!r} holds {y_kind} values, but it plots on {axis_where}, which takes {axis_kind} values. Plot a {axis_kind} column there.

A layer on a bar's value axis shares its scale, so its y must be the same kind as the bar's: dates over a date measure, numbers over a numeric bar. A layer pinned with axis_y.position gets a numeric scale of its own. A column of the wrong kind draws no marks.

ERR-LAYERED-NO-PALETTE: Layered chart has no color palette

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: layered chart has no color palette

Fix: Set a non-empty color palette with style.palette on the chart, the board, or the theme.

Fired when layers need palette colors and the resolved palette is empty.

ERR-LAYERS-AMBIGUOUS-Y-DOMAIN: Chart-level y domain is ambiguous with independent layer scales

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} sets axis_y.scale.continuous.domain={domain!r} but a layer pins its y axis to one side, so the chart has two independent y scales and one chart-level domain cannot apply to both. Remove the chart-level axis_y.scale.continuous.domain and set axis_y.scale.domain on each layer's own axis_y; the base series' domain cannot be pinned once a layer sets axis_y.position.

Fired when a chart sets axis_y.scale.continuous.domain at the chart level and any layer pins its y axis to a side with axis_y.position. The base chart takes the opposite side, so the chart has two independent y scales and a single chart-level domain is ambiguous. Remove the chart-level axis_y.scale.continuous.domain and set axis_y.scale.domain on each layer's own axis_y; the base series' domain cannot be pinned once a layer sets axis_y.position.

ERR-LEGEND-ALIGN-UNSUPPORTED: A legend cannot be aligned this way on this chart

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r} asks for a legend `align` that cannot be honored: {reason}. Use `align: start` instead.

Fired when a key.legend.position.align of center (or a pie's end) cannot be honored: the chart is small multiples or has an endpoint-label rail (no single plot to align in), or its legend is larger than the plot.

ERR-LEGEND-POSITION-UNSUPPORTED: Legend placement combination is not supported

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r} places its legend at `edge: {edge}`, `align: {align}`, `overlay: {overlay}`, which no placement supports. Supported placements: {supported}.

Fired when the resolved key.legend.position (edge, align, overlay) names a placement the renderer cannot draw.

ERR-LINE-CONNECT-ALONE: Line connect does not combine with layers or multiples

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (line): connect draws one path through its own rows, so it does not combine with layers or multiples. Remove them, or drop connect.

Fired when a line chart sets connect: beside layers: or multiples:. A connected scatter is one chart over its own rows.

ERR-LINE-CONNECT-COLUMN-NOT-FOUND: Line connect column not found in the query result

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (line): connect column {field!r} is not in the query result. Available columns: {available}.

Fired when a line chart's connect: names a column missing from its query result. Check for a typo, or add the column to the query.

ERR-LINE-CONNECT-NEEDS-NUMERIC-X: Line connect needs a numeric x

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (line): connect needs a numeric x, but {x_field!r} is not. Connecting points in another column's order is for paths over two measures; a category or date x already has an order.

Fired when a line chart sets connect: over an x column that is not numeric. A connected scatter walks a numeric x out of order; a date or category x has its own order.

ERR-LINE-CONNECT-NULL: Line connect column has an empty cell

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (line): connect column {field!r} is empty in row {row}. Every point needs a place in the path.

Fired when a line chart's connect: column holds a NULL. A point with no order has no place in the path; filter the row out or fill it in the query.

ERR-LINE-Y-NOT-NUMERIC: Line chart y column is not numeric

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (line): y column {y_field!r} is not numeric. Line charts always plot x as the dimension and y as the value; use a numeric column for y.

Fired when a line chart's y: column contains non-numeric data. Line charts always use y as the value axis; use a numeric column for y.

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: the link template references `{{{{ {channel} }}}}` but the chart has no `{channel}:` field. To fix: add `{channel}:` to the chart or drop the placeholder from `link:`.

Fired when a chart link template names an x, y or color channel the chart does not assign, so the link cannot be resolved for any mark.

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Link {link!r} at {field_path} begins with a template. Start it with /, ?, # or https:// so data cannot choose the scheme.

Fired when a chart or footer link's literal text before its first {{ template placeholder does not itself fix a safe scheme — the query row or variable value filling the template would then decide what scheme the browser navigates to. Start the link with a board path or a fixed https:// prefix instead.

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Link {link!r} at {field_path} uses scheme {scheme!r}. Use a board path (/, ./, ?, #) or http, https, mailto.

Fired when an authored link (chart link, table column link/header_link, or footer link) resolves to a URL scheme other than http, https, or mailto. A board path (starting with /, ./, ../, ?, or #) is always allowed; any other scheme — javascript:, data:, vbscript:, or an editor deeplink like vscode:// — is rejected so a link can never execute script or navigate somewhere unexpected.

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Rendered link {href!r} uses scheme {scheme!r}. Allowed: board paths (/, ./, ?, #), http, https, mailto.

Fired when a link resolved at render time — a table cell/row link built from query row data, or a chart link whose scheme only becomes known after the chart renders — uses a scheme other than http, https, or mailto. Compile-time validation (ERR-LINK-SCHEME-UNSAFE) cannot see this: the value only exists once the query has run, or once a chart-link sentinel prefix used to survive sanitizing has been stripped. The affected chart renders an inline error instead of the unsafe link.

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{board} sets `links:`, but only the root board does. A board and everything nested in it link and open links one way; move `links:` to the root board.

Fired when a nested board (inline or imported) authors a links: block. links.auto and links.open apply to the whole page, so they are set once, on the root board or in charts/meta.yml.

ERR-LOG-SCALE-REQUIRES-POSITIVE-DATA: Log scale requires strictly positive data

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: column {y_field!r} has a value <= 0, but axis_y.scale.type: log requires strictly positive data; a log domain is undefined at and below zero. Filter out the non-positive rows, or drop the log scale.

Fired when axis_y.scale.type: log is used but the y column contains a value ≤ 0. A log domain is undefined at and below zero. Filter out the non-positive rows, or drop the log scale.

ERR-LOG-SCALE-REQUIRES-POSITIVE-X-DATA: Log x scale requires strictly positive data

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: column {x_field!r} has a value <= 0, but axis_x.scale.type: log requires strictly positive data; a log domain is undefined at and below zero. Filter out the non-positive rows, or drop the log scale.

Fired when axis_x.scale.type: log is used but the x column contains a value ≤ 0. A log domain is undefined at and below zero. Filter out the non-positive rows, or drop the log scale.

ERR-LOG-SIZE-SCALE-REQUIRES-POSITIVE-DATA: Log size scale requires strictly positive data

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: size column {size_field!r} has a value <= 0, but style.size.type: log requires strictly positive data; a log domain is undefined at and below zero. Filter out the non-positive rows, or use type: sqrt.

Fired when style.size.type: log is used but the size: column contains a value ≤ 0. A log domain is undefined at and below zero. Filter out the non-positive rows, or use type: sqrt.

ERR-MAP-LOOKUP-KEY-MISMATCH: Map chart cannot join on mismatched key format

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Map chart {chart_id!r} cannot join lookup field {lookup_field!r} to geo source {geo_source!r} on key {geo_key!r}: the geo source expects {expected_format} keys like {expected_samples}, but the query returned values like {query_samples}.

Fired when a map chart's lookup field values do not match the format expected by the geo source. Check that the lookup field uses the same key format (e.g. FIPS codes, ISO country codes) as the geo source.

ERR-MIRROR-ENDPOINT-LABELS: axis_y.mirror cannot be combined with endpoint labels

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: axis_y.mirror is not supported together with endpoint labels; the endpoint-label rail occupies the opposite edge. Use one or the other on this chart.

Fired when a chart authors (or its theme sets) style.axis_y.mirror while its endpoint-label rail is also visible. Both want the opposite edge from the chart's primary y-axis; the mirrored scale and the label rail can't share it. Distinct from ERR-MULTIPLES-ENDPOINT-LABELS: this code fires when the chart has no multiples: at all, so axis_y.mirror is the field actually responsible for the collision; a multiples: grid's collision (even one that also happens to auto-derive a both-edge axis internally) is reported as ERR-MULTIPLES-ENDPOINT-LABELS instead, since multiples: is the field the author wrote.

ERR-MIRROR-LAYERS: axis_y.mirror needs layers that share the base's y scale

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: axis_y.mirror cannot reflect this chart's `layers:`. Mirror needs one shared y scale on a vertical chart: a layer that sets its own `axis_y` has a scale of its own, and a horizontal bar measures along x. Drop `style.axis_y.mirror`, the layer's `axis_y`, or the `layers:`.

Fired when a chart carries layers: while style.axis_y.mirror is on and the layers do not share one y scale: a layer sets its own axis_y, or the base is a horizontal bar, whose measure runs along x. Layers that share the base's y scale mirror normally. Silently skipping the mirror would be a wrong result that looks right, so it refuses. Reported at render rather than by dct validate because mirror is cascade-resolved: a theme layer can turn it on for a chart that never authored it.

ERR-MIRROR-MULTI-SERIES: axis_y.mirror requires a single y field

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: axis_y.mirror is not supported on multi-series charts (y = {y}); a mirrored axis restates one shared y-scale, and folded measures have no single scale to restate. Collapse `y:` to one field, or drop `style.axis_y.mirror`.

Fired when a chart carries a list-valued y: while style.axis_y.mirror is on. Mirror draws the same y-scale on both edges of a wide chart, which only means something when there is exactly one measure scale to draw. Reported at render rather than by dct validate because mirror is cascade-resolved: a theme layer can turn it on for a chart that never authored it, so the combination is not visible on the authored chart alone.

ERR-MIRROR-UNMEASURABLE-ALIGN: axis_y.labels.align cannot be measured on the mirrored edge

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: axis_y.labels.align: {align!r} would draw the mirrored {opposite}-edge labels across the axis into the plot, and the engine can only reserve a gutter for text it can measure. The mirrored labels come from an expression, a case transform, or have no numeric format. To right-align a percent ruler, use `axis_y.mirror.format` (for example `.0%`); otherwise omit `axis_y.labels.align`.

Fired when style.axis_y.labels.align is authored on a chart with style.axis_y.mirror, and the alignment would invade the plot on the mirrored edge while the label text cannot be measured to size a safe labelPadding. Text from mirror.expr, an authored labels.expr, an upper/lower font.case, or an axis without a numeric format is evaluated at paint time, so its width is unknown. mirror.format is measurable and supports alignment.

ERR-MULTI-Y-COLOR-CONFLICT: Multi-y chart's color: must name a column

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} ({chart_type}): y: [...] folds measures into a color series, and color: {color_field!r} is bound to a gradient or conditional scale, which names no series to cross them with. Bind color: to a plain column (each of its values x each measure becomes a series) or drop it.

Fired when a bar, area, line, or scatter chart authors y: [a, b] together with a color: that is not a plain series column -- a gradient or a conditional scale. A column composes with the fold: the series become <value> - <measure> composites, one per dimension value per measure.

ERR-MULTIPLES-ENDPOINT-LABELS: multiples cannot be combined with endpoint labels

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: multiples cannot be combined with endpoint labels; the endpoint-label rail names series for a single panel, and a faceted chart has no single panel for it to sit beside. Set style.key.type: legend on this chart to keep the small multiples, or remove multiples to keep the labels.

Fired when a chart authors multiples: while its endpoint-label rail is explicitly switched on. The rail names series for one panel; a faceted chart has no single panel for it to sit beside. The shipped default switches the rail off wherever multiples: is set (a legend above the panels names the series instead), so this fires only where the rail was asked for by name. Set style.key.type: legend to keep the small multiples, or remove multiples: to keep the labels.

ERR-MULTIPLES-FIELD-NOT-FOUND: multiples partition field not found in the query result

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

multiples field(s) {fields} not found in the query result. Available columns: {available}.

Fired when multiples.rows or multiples.columns names a column that is not present in the chart's query result. Check for a typo, or add the column to the query.

ERR-MULTIPLES-INDEPENDENT-SCALE-MIRROR: multiples with scale: independent cannot use a both-edge mirror axis

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: multiples with scale: independent cannot use a both-edge (mirror) y-axis: mirroring a shared scale to both edges is meaningless when each panel has its own scale. Use scale: shared, or set style.axis_y.mirror: false.

Fired when a chart authors multiples: {scale: independent} together with style.axis_y.mirror (bool true or an AxisMirrorStyle format/expr override). Mirroring reflects one shared scale to both edges; meaningless once every panel has its own independent scale. Use scale: shared, or turn mirror off.

ERR-MULTIPLES-LAYER-PARTITION: multiples cannot be combined with an own-query layer that returns the partition field

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: multiples cannot be combined with an own-query overlay layer whose query returns the partition field(s) {fields}; a panel cannot take a different inline dataset for one layer. Remove the partition column(s) from the layer's query to repeat the layer in every panel, or drop multiples.

Fired when a chart authors both multiples: and a layers: entry with its own query: whose result includes the partition column(s). Multiples partition only the root dataset, never a layer's own inline dataset, so per-panel layer data cannot be represented. A layer whose query does not return the partition column is unaffected; it repeats identically in every panel, which is correct for a global reference line.

ERR-MULTIPLES-RESOLVED-WITHOUT-DATA: a faceted chart resolved without data is being rendered with real rows

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: multiples is set but this chart was resolved against no data (panel_axes is empty) and is now being rendered against real rows. Re-resolve the chart against its actual data before rendering.

Fired when a chart authors multiples:, was resolved with an empty query result (baking panel_axes == (), the same N=1 state a non-faceted chart gets), and is then rendered against non-empty rows. Silently falling through would render the chart unfaceted instead of raising on data resolve never saw. Re-resolve the chart against its actual data before rendering.

ERR-MULTIPLES-ROW-MISSING-PARTITION-FIELD: row is missing a multiples partition field entirely

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Row is missing the multiples partition field {field!r} entirely (it carries: {available}); every row must carry every partition field, even one whose value is null.

Fired when a chart is rendered against a row that does not carry a partition column at all, as distinct from carrying it with a null value (a legitimate panel resolve() may have baked). A ragged row silently defaulting the missing field to None could misroute into that legitimate null panel by accident, so this is checked and raised separately.

ERR-MULTIPLES-ROW-OUTSIDE-PANEL-AXES: row's multiples value is not among the resolved panel_axes

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Row's {field!r} value {value!r} is not among the resolved panel_axes values {allowed} for this chart's multiples partition.

Fired when a chart is rendered against rows whose partition column carries a value resolve() never saw: the row-truncated render path can only ever hold a subset of the axis values baked at resolve, never one the axes lack, so this firing means the chart is being rendered against data resolve never saw. Re-resolve the chart against its actual data before rendering.

ERR-MULTIPLES-SELF-CROSSED: multiples.rows and multiples.columns name the same field

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

multiples.rows and multiples.columns both name {field!r}. Only the diagonal of the resulting grid can ever hold a row; the rest are structurally empty, whatever the data says.

Fired when multiples.rows and multiples.columns name the same column. Crossing a field with itself builds a panel grid where a row of data can only ever land on the diagonal (the row's value matches itself); every other cell in the grid is guaranteed empty. Name a different column for rows or columns, or drop one of them and keep a single-direction partition.

ERR-MULTIPLES-SUPPORT-TABLE: multiples cannot be combined with a chart support_table

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: multiples is not supported together with a chart support_table; the attached table has no meaning per panel. Use one or the other on this chart.

Fired when a chart authors both multiples: and a support_table:. The attached table is a single per-chart element; once the chart is faceted into a small-multiples grid it has no per-panel meaning. Remove one or the other.

ERR-MULTIPLES-VALUE-COLLISION: two distinct multiples values stringify to the same panel key

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

multiples field {field!r}: values {previous!r} and {value!r} both stringify to {canonical!r}; rename one to disambiguate.

Fired when multiples.rows or multiples.columns names a column whose distinct values collide once canonicalized to a string panel key (e.g. the string '1' and the integer 1). Merging them into one panel would silently combine two genuinely distinct groups. Rename one value so the two panel keys stay distinct.

ERR-PALETTE-REBIND-UNSATISFIED: A palette role is rebound to a palette of the wrong family

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path} is set to {bound!r}, a {family} palette, but this role needs a {required} palette.

Fired when a board or project layer rebinds category, sequence, or diverge under style.palettes to a palette of another family. Themes read category as an ordered categorical stop list and sequence/diverge as continuous ramps, so each role accepts one family, on every theme alike. Bind a categorical palette to category, a sequential one to sequence, and a diverging one to diverge.

ERR-PALETTE-STYLE-INVALID: A board's categorical palette cannot be used as written

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

The categorical palette in `style.charts.color.categorical` cannot be used as written: {reason}

Fired when a board-level style.charts.color.categorical palette or single-series palette names a shipped palette in a form it cannot supply, such as more stops than the palette has (vivid-10:14). The reason is the palette resolver's own message and names what to change.

ERR-PALETTE-UNKNOWN: Palette name is not a theme palette role or a shipped palette

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Unknown palette {name!r} (authored as {authored!r}) at {field_path}. Palette roles are theme-scoped, resolved only from a theme's `palettes:` block; this name is not a role the active theme binds, and not a shipped dbt charts palette.

Fired when an authored palette: string names neither a role in the theme's palettes: block (category, sequence) nor a shipped dbt charts palette (editorial-10). Roles are theme-scoped; board- and chart-level style: cannot author one, only a palette name. Checked in two places: once the theme cascade is complete (a theme's own palettes: binding), and once each board/chart is normalized (every other palette field); both are the first point a role name can be told apart from a typo at that scope.

ERR-PALETTE-UNUSABLE: A shipped palette cannot be used as written

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Palette {authored!r} at {field_path} cannot be used as written: {reason}

Fired when an authored palette: names a palette that exists but not in the form written: more stops requested than the palette has (vivid-10:14), a tone or pattern palette where color stops are expected, or a surface the palette cannot carve. The reason is the palette resolver's own message and names what to change. A name that matches no palette is ERR-PALETTE-UNKNOWN instead.

ERR-PATTERN-FALLBACK-FLAT: Marks too small for their pattern leave two series identical

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: {count} mark(s) are too small to show their pattern and draw a flat tint instead, and two series end up with the same tint and outline, so the chart can no longer tell them apart.

Fix: Give the chart wider marks (more width, fewer bars or points), or add color: naming the pattern column so each series also has its own hue.

Fires when a patterned chart draws marks with fewer than 1.25 pattern repeats across their short side, and two different series that fell back draw the same flat tint with the same outline. Such a mark draws a flat tint (with the pattern's outline) instead of its tile; when two series end up identical the chart looks right but cannot be read, which is worse than none. A single-series bar that patterns its categories only warns: the axis labels name them. WARN-PATTERN-FALLBACK-FLAT covers a fallback that leaves every series distinguishable.

ERR-PERCENT-ENTRY-NOT-FUNNEL: A percent support-table column is for funnels only

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: support_table `percent: {column}` shows a stage as a share of the first stage, so it belongs to a `type: funnel` chart. Use `source:` for a plain column.

Fired when a support_table entry authors percent: on a chart that is not a funnel. A percent column shows each stage as a share of the first, which only a funnel has.

ERR-PERCENT-RANGE: Percent format received a 0-100-shaped value instead of a ratio

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Value {value!r} passed to percent format {format_spec!r} looks 0-100-shaped, but percent formats expect a 0-1 ratio (0.182, not 18.2). To fix: divide by 100 in SQL so the value is a ratio, or switch to the `percent_number`/`percent_number_delta` formats if the value is already in the 0-100 scale (e.g. 18.2 means 18.2%).

Fired when a percent format receives a value that looks like it is already in the 0-100 scale rather than the 0-1 ratio scale that percent formats expect. Divide by 100 in SQL so the value is a ratio, or switch to a percent_number format.

ERR-PIE-NEGATIVE-THETA: Pie chart theta column contains a negative value

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Pie chart {chart_id!r} has {negative_rows} row(s) with a negative value in its theta column {theta_field!r}. A pie slice can't represent a negative share of the whole. Filter or transform the value in the query.

Fired when the column bound to a pie or donut chart's theta channel contains a negative value. A pie's slices are angles summing to a full circle; a negative theta has no geometric meaning, so it must be filtered or transformed in the query.

ERR-PIE-NULL-THETA: Pie chart theta column contains NULL values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Pie chart {chart_id!r} has {null_rows} row(s) with a NULL value in its theta column {theta_field!r}. A pie slice can't represent a missing value. Filter the null rows or give them a real number in the query (e.g. COALESCE({theta_field}, 0)).

Fired when the column bound to a pie or donut chart's theta channel contains NULL values. A pie slice's angle comes directly from theta, so a NULL cannot be drawn or labeled; fix the grain in the query instead of letting the renderer guess a value.

ERR-PIE-TOTAL-WITHOUT-HOLE: A pie total needs a donut hole to sit in

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{field_path} is set, but this pie has no hole, so the total would print over the wedges. Set `style.inner_radius` above 0 to make it a donut, or remove `total:`.

total: draws the sum of the slice values at the center of the chart, which is the hole of a donut. A solid pie has no hole, so the text would overlap the wedges. Set style.inner_radius above 0, use type: donut, or remove total: (total.visible: false is accepted on a solid pie).

ERR-REGIONAL-NESTED-MISMATCH: A nested board's regional differs from its root board's

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{board} sets regional {authored}, but the board it is nested in uses {root}. A board and everything nested in it write numbers and dates one way; remove the nested `regional:` or make it match.

Fired when a nested board (inline or imported) authors a regional: number locale, time locale or currency that differs from the root board's. One page reads numbers and dates in one locale and one currency, so nested boards take the root's regional:. Set it on the root board or in charts/meta.yml.

ERR-RESOLVED-PIE-DATA-MISMATCH: Resolved pie rows do not match the rendered rows

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Resolved pie {chart_id!r} was finalized from different query rows. Resolve the chart against the rows it renders.

Fired when the rows a pie renders differ from the rows used to finalize its label and attached-table policy. Resolve and render must read the same query rows.

ERR-RESOLVED-PIE-WIDTH-MISMATCH: Resolved pie width does not match its render slot

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Resolved pie {chart_id!r} was finalized at width {resolved_width}, not {render_width}. Resolve the chart again for the target slot.

Fired when a resolved pie is rendered at a different width from the one used to finalize its label and attached-table layout. Resolve the chart again with the actual target width before rendering.

ERR-RIBBON-LABELS-FUNNEL-ONLY: Ribbon labels are for funnels only

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: {field_path} is on, but ribbon labels are for funnels only. Turn it off, or draw the chart with `type: funnel`.

Fired when style.marks.bar.ribbons.labels.visible is on for a chart that is not a funnel. A funnel's ribbons show what each stage lost; ribbons on a stacked bar stay unlabeled.

ERR-SCALE-DOMAIN-REQUIRES-CONTINUOUS-X: axis_x.scale.domain requires a continuous x-axis scale

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r}: axis_x.scale.domain is set, but the x-axis resolved to a {vl_type!r} (categorical) scale, not a continuous one. An explicit [low, high] domain only extends a continuous scale: on a categorical scale it is read as exactly two category values, collapsing every mark onto the first one. If the x field is a date, add `axis_x.scale.type: temporal` to force a continuous temporal scale.

Fired when axis_x.scale.domain is set but the x-axis resolves to a categorical (ordinal/nominal) scale rather than a continuous one. An explicit [low, high] domain only extends a continuous scale; on a categorical scale it is read as exactly two category values. Add axis_x.scale.type: temporal to force a continuous temporal scale if needed.

ERR-SCALE-TYPE-SCATTER-ONLY: pow, sqrt and symlog scales bend only a scatter

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} ({chart_type}): {axis}.scale.continuous.type: {scale_type} is not supported: only a scatter bends its axes on a pow, sqrt or symlog scale, and a {chart_type} would draw {axis} linear under a description naming the type. Use a scatter, or remove the scale type (a line or area y axis also takes `log`; a bar or histogram takes only linear). See charts/axis-scales in the docs.

Fired when axis_x or axis_y sets scale.continuous.type to pow, sqrt or symlog on a line, area, bar or histogram chart. Only a scatter bends its axes on those scales; the other families draw their axis linear whichever of them is set, so the axis would be labeled with a scale it does not use. Use a scatter, or remove the scale type. A line or area y axis also takes log; a bar or histogram takes only linear (a bar on log is ERR-BAR-LOG-SCALE-NOT-SUPPORTED). See the axis scales page in the docs, charts/axis-scales.

ERR-SCATTER-MULTI-Y-NOT-NUMERIC: Scatter chart multi-metric y column is not numeric

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r} (scatter): y: [...] column {y_field!r} is not numeric. A single y: column may be categorical (a dot plot), but every measure in a y: [...] list is folded onto one numeric axis; use numeric columns.

Fired when a scatter chart's y: [a, b] list contains a non-numeric column. A single y: column may be categorical (a dot plot), but a list y: folds every measure onto one shared numeric axis, so each measure must be numeric.

ERR-SORT-FIELD-NOT-FOUND: sort.by column not found in the query result

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

sort.by column {field!r} not found in the query result. Available columns: {available}.

Fired when sort.by names a column that is not present on every row of the chart's query result. Without it the chart would render in natural order while claiming to be sorted. Check for a typo, or add the column to the query.

ERR-SPAN-MIDDLE-ALIGNED-LABELS: labels.position: middle_aligned is not meaningful on a bar with y_start

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

labels.position 'middle_aligned' lines every label up at one height measured from zero, which a bar with y_start does not start from. Use 'middle' to center each label between its bar's two ends.

Fired when labels.position: middle_aligned is set on a bar with y_start. That position places every label at one common height measured from zero; a bar that starts elsewhere has no such height. Use middle.

ERR-SPARK-BAR-VALUE-FIELD-NOT-FOUND: spark_bar x names a column not in the query result

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

spark_bar chart {chart_id!r}: x field {field!r} names a column not present in its data. Available columns: {available}. On spark_bar, x is the bar magnitude and must name a numeric column from the query.

Fired when a spark_bar chart's x names a column that is not in the query result at all; usually a typo or a column renamed in the query. Distinct from ERR-SPARK-BAR-VALUE-NOT-NUMERIC, which fires when the column exists but holds no usable numbers: that one's fix is to swap x and y, which would be the wrong advice for a name that simply isn't there.

ERR-SPARK-BAR-VALUE-NOT-NUMERIC: spark_bar value field is not numeric

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

spark_bar chart {chart_id!r}: x field {field!r} is not usable as the magnitude: {reason}. spark_bar reverses the usual convention: x is the magnitude (the number) and y is the label (the text), the opposite of every other chart family. Set x to a numeric column and y to the text column.

Fired when a spark_bar chart's x field (the magnitude channel) is missing, holds no numeric values, or holds a non-numeric value in one of the rows being rendered. spark_bar reverses the x/y convention used by every other chart family: x is the magnitude, y is the label. This usually means x and y were authored in the cartesian order (swap them), or that x was left unset with no numeric column to auto-detect.

ERR-STACKED-MIDDLE-ALIGNED-LABELS: labels.position: middle_aligned is not meaningful on a stacked bar

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

labels.position 'middle_aligned' aligns every bar's label to one shared height, which has no meaning for the segments of a stacked bar. Use 'middle' to center each label in its own segment, or 'top'/'bottom' to pin it to a segment edge.

Fired when labels.position: middle_aligned is set on a stacked bar. middle_aligned places every label at a single common height (the mean bar height, halved) so a row of labels reads as one line, a whole-bar idea with no per-segment reading. Stacked segments each need their own center: use middle.

ERR-STEP-BAND-MULTI-SERIES: Step curve with a multi-series color split on a band x-axis

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

curve: step does not support a multi-series color encoding on a band x-axis (chart '{chart_id}'). It is a single-series target-overlay idiom; drop the color split or pick a different curve.

Fired when curve: step on a band x-axis is combined with a data-driven color split. Step is a single-series target-overlay idiom there; drop the color split or choose another curve.

ERR-STYLE-CSS-VALUE-INVALID: A style value for markdown text is not valid CSS

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Invalid style value for markdown text: {detail}.

Fired when a font color, weight, style or decoration that styles markdown text (prose, callouts, table cells) contains a character that could close the CSS declaration or open a new rule: one of <>;{}"'\* or a control character. Use a plain CSS value such as a hex color, oklch(...), var(--x), or bold.

ERR-SUPPORT-TABLE-FORMAT-NOT-NUMERIC: support_table entry formats a non-numeric column

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

support_table source {source!r} carries the number format {format_spec!r} but holds the non-numeric value {value!r}. To fix: drop the format, or source a numeric column.

Fired when a support_table source entry with a number format reads a column that holds a value other than a number; the strip would otherwise paint NaN.

ERR-SUPPORT-TABLE-LABEL-IGNORED: support_table per_series label: names nothing in this layout

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{message}

Fired when a per_series: entry without by_measure: true sets label: on a chart whose strip rows (vertical bar, line, area) or per-series columns (stacked horizontal bar) are named by the color field's series values, so the label would be silently dropped. A horizontal grouped bar's single per_series column still takes its header from label:. Remove the label; series names come from the color field and legend.

ERR-SUPPORT-TABLE-NO-X-ENCODING: support_table attachment has no x-encoding

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

support_table requires an x-encoding; the chart has no `x:` field. To fix: add `x: <column>` or remove the support_table block.

Fired when a chart carries a support_table but no x field for the strip to anchor on.

ERR-SUPPORT-TABLE-POSITION-INVALID: style.support_table.position is invalid for the chart's orientation

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

{message}

Fired when style.support_table.position names a side the chart's own category-axis orientation can't place. A horizontal category axis (vertical bar, line, area) only accepts top/bottom; a vertical one (a horizontal bar) only accepts left/right. The message carries the specific value and orientation.

ERR-TABLE-FORMAT-KIND-MISMATCH: a table column's format spec does not match its cell values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table column format {fmt!r} does not match its cell values. {remedy}

Fired when a table column's format: spec is the wrong kind for the values it formats: a strftime-style time spec (a predefined name like time_short, or an explicit string containing a %-prefixed directive such as %B or %W) applied to a numeric value, or a d3 numeric spec applied to a date/datetime value. format: is kind-agnostic at compile time, so dct validate accepts either mismatch; this is caught per cell at render time instead, once the actual value kind is known.

ERR-TABLE-FREEZE-INVALID: column_layout.freeze cannot pin the columns it names

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table {chart_id!r}: column_layout.freeze {reason}

Fired when a table's freeze count cannot be honored. It is larger than the number of columns the table draws, the table squeezes its columns instead of scrolling them, or the pinned columns take more than half the table's width. Clamping or ignoring it would silently pin something other than what the author asked for.

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Unknown link template filter: {filter_name!r}. Only 'urlencode' is supported.

Fired when a table column's link: template pipes a value through a filter other than urlencode, e.g. {{ id | shout }}.

ERR-TABLE-LIST-COLUMN-TYPE: a list column does not hold a list of single values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table list column {column!r} needs a list of single values in each cell, but {found}. Return the values as an array in the query, for example ARRAY_AGG(owner).

Fired when a table column marked list: true is declared as something other than an array, or a cell holds text, a number, a nested array or an object instead of an array of single values. The renderer never splits text into a list, so the query has to return a real array. An empty cell draws nothing and is not an error.

ERR-TABLE-PIVOT-DIMENSIONS-AMBIGUOUS: a pivot declares neither rows nor values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

pivot: declare at least one of `rows` or `values`; with both omitted the row and measure dimensions are ambiguous.

Fired when a table pivot gives only columns. The remaining fields cannot be split into row dimensions and measures without guessing, so one of rows or values is required.

ERR-TABLE-PIVOT-DUPLICATE-CELL: a pivot cell receives more than one value

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

pivot_table_data: duplicate value for row ({row}) and column {pivot_column}, measure {measure!r}; move the extra field onto rows or columns.

Fired when more than one query row maps to the same pivot cell (same row key, column key, and measure). The pivot never aggregates, so the query must return one row per cell or the extra field must move onto rows or columns.

ERR-TABLE-PIVOT-FIELD-NOT-FOUND: a pivot field is not a column of the query result

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

{channel} {field!r} not in data rows; observed keys: {observed}

Fired when a table pivot's columns, values, or rows names a field that the query does not return. channel says which channel: pivot.column, pivot.value, or pivot.row.

ERR-TABLE-PIVOT-NO-MEASURES: a pivot has no measure columns

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

pivot: no measure columns; `values` resolved to empty. Declare at least one measure field. Observed keys: {observed}

Fired when a table pivot ends up with no measure to place in the cells, for example an explicit values: [].

ERR-TABLE-PIVOT-ROW-ROLE-CONFLICT: pivoted rows merge with conflicting roles

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

pivot_table_data: conflicting row roles for row ({row}): {stored_role!r} vs {this_role!r}. A merged pivot row must resolve to a single role.

Fired when query rows that pivot into the same wide row resolve to different row.role values. Keeping the first would hide the disagreement.

ERR-TABLE-ROW-ROLE-NOT-FOUND: a table's row_role is not a column of the query result

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

row_role {row_role!r} is not a query column; `row_role` must name the column that carries each row's role (`total`, `summary`). Observed keys: {observed}

Fired when a table's row_role names something the query does not return, such as a role word like total instead of the column that holds it. A name that is not a column would give no row the role it was meant to mark.

ERR-TABLE-SPANNER-NOT-ADJACENT: a table spanner's columns are not adjacent

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table {chart_id!r}: spanner {label!r} columns {spanner_columns} are not adjacent among the visible columns {visible_columns}. Reorder the query's SELECT; spanners never reorder columns.

Fired when the columns of a table spanner are not next to each other in the visible column order. Column order belongs to the query, so a spanner never reorders anything; reorder the SELECT or hide the columns between them.

ERR-TABLE-SPANNER-UNKNOWN-COLUMN: a table spanner names a column not in the query result

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table {chart_id!r}: spanner {label!r} names {unknown}, which are not query columns (columns: {columns}).

Fired when a table spanners: entry lists a column that the query does not return; usually a typo or a column renamed in the query.

ERR-TABLE-SPARK-COLUMN-TYPE: a spark column is not declared as an array of numbers

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table spark {spark_type!r} on column {column!r} needs an array of numbers, but the query declares the column as {declared}. Aggregate the values into an array in the query, for example ARRAY_AGG(value ORDER BY month).

Fired when a table draws a columns, line or area spark from a column that the source declares as something other than an array of numbers, for example text. The renderer never parses an array out of text, so the query has to return a real array. A column whose cells are all empty, or a spark that is not drawn (a transposed table), is not checked.

ERR-TABLE-SWATCH-NOT-COLOR: a swatch column holds a value that is not a color

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table {chart_id!r}: column {swatch_column!r} declares swatch: true but row {row_index} value {value!r} is not a CSS color. Swatch cells must be hex (e.g. '#3164a3') or 'transparent'. Either point swatch: true at a different column, or fix the data.

Fired when a table column declared swatch: true has a cell that is empty or not a CSS color. The author either pointed swatch at the wrong column or the query carries the wrong content; rendering it as text would hide the mistake.

ERR-TABLE-TEMPORAL-FORMAT-INVALID: a table cell's date or time could not be formatted

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table cell {cell!r} could not be formatted with spec {spec!r}: {reason}

Fired when a table cell holds a date or time that cannot be parsed (for example an out-of-range hour in an ISO timestamp), or when the column's resolved date/time format spec is itself invalid.

ERR-TABLE-TRANSPOSE-ROW-COUNT: a transposed table needs exactly one row

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.table.transpose requires exactly one data row; got {row_count}. Remove transpose: true or change the query.

Fired when style.table.transpose is set and the query returns zero or several rows. Transposing turns the single result row into a column of label and value pairs.

ERR-TABLE-TRANSPOSE-VISIBLE-UNKNOWN-COLUMN: a transposed table hides a column the query does not return

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.table.transpose: style.columns sets `visible:` on {unaddressed}, which match no query column. The transposable columns are {available}. Check for a typo.

Fired when a transposed table's style.columns sets visible: on a name that is not a query column. Hiding it would silently do nothing.

ERR-TABLE-VISIBLE-UNKNOWN-COLUMN: a table hides a column that is not rendered

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

table {chart_id!r}: style.columns sets `visible:` on {unaddressed}, which match no rendered column. This table's addressable columns are {addressable}. Check for a typo, or key the entry by the name the rendered column actually carries (a pivot's measure name, or a bare pivoted value).

Fired when a table's style.columns sets visible: false on a name that is not a rendered column, so the entry could never take effect. Under a pivot the rendered names are the pivot's measure names or bare pivoted values.

ERR-TICKS-COUNT-REQUIRES-NON-LOG-SCALE: ticks.count is not supported with log scale

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: axis_y.ticks.count is not supported with scale.type: log: a target tick count on a log axis is nonsense; log ticks fall on decades. Remove ticks.count.

Fired when axis_y.ticks.count is combined with axis_y.scale.type: log. A target tick count on a log axis is meaningless because log ticks fall on decades. Remove ticks.count.

ERR-TICKS-INTERVAL-MEASURE-AXIS: ticks.time_unit is not supported on the measure axis

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

style.axis_y.ticks.time_unit/step is not supported: the measure axis (axis_y) is never temporal in dbt charts' cartesian model, and its tick ladder is computed from ticks.count. Use axis_y.ticks.count here; ticks.time_unit/step apply to axis_x.

Fired when style.axis_y.ticks.time_unit or step is set. The measure axis (axis_y) is never temporal in dbt charts' cartesian model, and its tick ladder is computed from ticks.count. Use axis_y.ticks.count here; ticks.time_unit/step apply to axis_x.

ERR-TICKS-INTERVAL-NOT-TEMPORAL: ticks.time_unit requires a continuous temporal x-axis

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.axis_x.ticks.time_unit requires a continuous temporal x-axis, but {field!r} resolved to a {vl_type!r} scale. Force a continuous scale with axis_x.type: temporal (or axis_x.time_unit: none), or remove ticks.time_unit.

Fired when style.axis_x.ticks.time_unit is set but the x-axis does not resolve to a continuous temporal scale. Force a continuous scale with axis_x.type: temporal (or axis_x.time_unit: none), or remove ticks.time_unit.

ERR-TICKS-STEP-NOT-QUANTITATIVE: a bare ticks.step requires a quantitative x-axis

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.axis_x.ticks.step without ticks.time_unit is a numeric tick interval, but {field!r} resolved to a {vl_type!r} scale. {remedy}

Fired when style.axis_x.ticks.step is set without ticks.time_unit on an x-axis that does not resolve to a quantitative scale. A bare step is the numeric cadence lever (it sets the minimum tick step, Vega-Lite's tickMinStep) and only a quantitative scale has a numeric tick interval. On a temporal axis, author ticks.time_unit alongside step to name a calendar cadence. On a discrete axis (ordinal or nominal) there is no tick interval to set; remove ticks.step. A horizontal bar is the case worth calling out: its axis_x is the categorical axis and its measure is axis_y, so orientation: vertical is usually what the author wanted.

ERR-TICKS-TIME-UNIT-NO-CADENCE: Tick time unit without a step-anchored cadence

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

ticks.time_unit: {time_unit!r} has no step-anchored cadence -- only a calendar-bucketing grain ({grains}) names a VL tick interval.

Fired when ticks.time_unit names a grain that cannot anchor a temporal tick interval.

ERR-TIME-FORMAT-NOT-TEMPORAL: a time format needs date values

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

style.{setting} ({fmt!r}) is a date pattern, but {field!r} holds {found}, not dates. {remedy}

Fired when a d3 time format (%b %Y) is authored on an axis whose field holds values that are not ISO dates (2024-01, 2024-01-31) or date objects: category names, numbers, or non-ISO bucket labels such as Q1 2024. Every tick would paint Invalid Date. A chart written with the retired style.time_format migrates onto style.axis_x.labels.format whatever x holds, so this is where a board whose x was never a date is told.

ERR-TORN-OUTLIER-UNSUPPORTED: Torn outlier caps are not supported here

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart {chart_id!r}: style.outliers.variant: torn_with_cap is not supported {reason}. Set style.outliers.variant: torn, or change the chart.

Fired when style.outliers.variant is torn_with_cap for a chart the cap cannot draw truthfully: a normalized, ranged (y_start), small-multiples or histogram chart; one with a bar layer on the shared axis_y scale; one with an authored axis_y domain above zero or zero: false; or one with an annotation or layer value past the break. A torn bar's cap is positioned by its end value above a zero-based break, so these shapes have no honest cap.

ERR-UNKNOWN-CHART: Chart id is not on the board

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

No chart {chart!r} on this board. Available charts: {available}.

Fired when a caller addresses one chart by board path + chart id (dct render BOARD --chart ID, dct describe BOARD --chart ID) and the board declares no chart with that id.

ERR-URL-VALUE-NOT-ABSOLUTE: a url column holds a value that is not an absolute http(s) URL

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

{where} is formatted `url`, but row value {value!r} is not an absolute http(s) URL.

Fired when a column formatted url holds a value without an http:// or https:// scheme, such as www.example.com. A scheme-less value would link to a board-relative path and land on the wrong page, so the render stops instead. Fix the value in the query (for example 'https://' || host), or drop format: url.

ERR-WIDE-MEASURE-NAME-CONTAINS-SEPARATOR: Wide measure name contains the dimension composite separator

  • Level: error
  • Domain: compile
  • Suppressible: no

Message template:

Chart authors y: [...] with color: as a dimension, and measure column {measure!r} contains the {separator!r} composite separator, so the composite series name cannot be split back into a dimension value and a measure. Rename the measure column, or alias it in the query.

A wide chart authoring a list of y: measures can also author color: as a dimension the measures cross with. Fires when one of the measure column names itself contains the separator the <dimension value> - <measure> composite string uses. The composite cannot be split back apart unambiguously in that case, so the measure column must be renamed, or aliased in the query, to avoid the separator.

ERR-X-VALUE-NOT-A-DATE: A time-axis x value is not a date

  • Level: error
  • Domain: render
  • Suppressible: no

Message template:

Chart {chart_id!r} plots x field {x_field!r} on a time axis, but {value!r} is not a date or timestamp. Every x value must parse as one; fix the query, or set `axis_x.type: ordinal` to draw the values as categories.

Fired when a line, area, bar or scatter chart's x axis resolves to time (the values are dates, or axis_x.type: temporal is authored) and an x value does not parse as a date or timestamp, such as 2024-02-30. The chart orders and positions every mark by its parsed instant, so a value with none cannot be drawn; the message names the first one and the x field it sits in. A band or ordinal scale keeps such a value as a category.