Combination chart reference
Contents: Use cases, Chart IDs, Minimal spec, Data, Options, Annotations, Overlay or dual axis, Value labels and reference labels, Sizing, Fixtures.
Stacked columns with line/area overlays; gated, tick-synced secondary axis. Type combo.
Use cases
- Volume with a rate line
- Revenue and margin on two axes
- Orders with average order value
Chart IDs
combo.overlay: fixtureevents-key-onlycombo.dual-axis: fixturerevenue-units-secondary
Minimal spec
{
"type": "combo",
"data": {
"categories": [
{ "id": "jan", "label": "Jan" },
{ "id": "feb", "label": "Feb" },
{ "id": "mar", "label": "Mar" }
],
"series": [
{
"id": "revenue",
"label": "Revenue",
"values": [80, 95, 110],
"kind": "column",
"scenario": "AC"
},
{ "id": "plan", "label": "Plan", "values": [90, 90, 100], "kind": "line", "scenario": "PL" }
]
},
"options": {
"unit": "$k",
"title": "Revenue moves from below plan to above plan",
"source": "Illustrative data",
"footnotes": ["AC = actual; PL = plan."]
}
}Data
A cell is a number, null or a value object; see Value cell.
| Path | Type | Required | Meaning |
|---|---|---|---|
| valueKind | string | Default valueKind for all series. One of 'fraction'. | |
| categories | array | yes | Ordered categories defining the displayed columns or positions and positional value alignment. |
| categories[].id | string | yes | Category identity used to match keyed values and annotation anchors. |
| categories[].label | string | Displayed category name; defaults to the category id and supports line breaks. A date id or date without a label prints a short date such as 'Sep'. Day ticks include the month ('2 Oct', or 'Fri 2 Oct' where room allows). A separate row carries the year under day, month and quarter ticks. | |
| categories[].date | string | ISO 8601 category date, yyyy-mm-dd; strictly increasing dates permit date-axis promotion where supported. | |
| categories[].total100 | number | Shared category percentage-basis metadata; this chart derives its comparisons from series values. | |
| categories[].gapAfter | boolean | number | Category spacing hint accepted by the data schema; this chart does not apply band-step gaps. | |
| categories[].breakAfter | boolean | Reserved category discontinuity hint; does not create an axis break in this chart. | |
| categories[].footnote | integer | 1-based reference into options.footnotes. The number is drawn beside this category label as the reference mark, and the note it points at keeps that number; a reference to no note draws nothing and warns, and notes the engine derives print unnumbered. | |
| categories[].partial | boolean | Period still running, such as the current week. Bars and segments on it are hatched and line markers on it are hollow; marks keep their positions. A drawn key names the running category once as "<label> to date". With no such key, the frame adds that note. | |
| series | array | yes | Series supplying values for each category, with optional reference series for comparisons. |
| series[].valueKind | string | Multiply numbers by 100 into pct cells; explicit pct cells stay in percent units. One of 'fraction'. | |
| series[].id | string | yes | Series identity used by keyed options, annotations and legend entries. |
| series[].label | string | Displayed series name; defaults to the series id. The hover card names each value with it ("North: 65.8"). | |
| series[].values | (cell | { categoryId, value: cell })[] | yes | Values in category order, or keyed entries pairing a categoryId with its value. |
| series[].scenario | string | AC, PY, PL, FC (or ACT, BUD, FCST, LY for last year). Codes and aliases accept any case. Controls scenario labels and paint conventions. | |
| series[].role | string | Data series or comparison-only reference series; references are excluded from the main plotted data. One of 'data', 'reference'. | |
| series[].colorRole | string | Theme color role used for this series when no explicit fill takes precedence. One of good, bad, warn, neutral, neutralLight, highlight, total, others; series-N for step N of the theme ramp, 1-based (series-2 is color.series[1]); or status-<key> for a theme status color. A hex color goes in fill. | |
| series[].fill | string | Explicit CSS fill color for this series; remains authored across theme changes. | |
| series[].unit | string | Unit shown with this series values and used to check shared-scale compatibility. | |
| series[].format | string | Format-by-example for this series values, for example 1,234 or 1.2%. | |
| series[].kind | string | Geometry for this series: column by default, or an overlaid line or area. One of 'column', 'line', 'area'. | |
| series[].axis | string | Value scale used by this series; secondary requires a declared secondaryAxis. One of 'primary', 'secondary'. | |
| series[].lineStyle | string | Stroke pattern; dashed and dotted strokes require a projected scenario such as FC or PL. One of 'solid', 'dashed', 'dotted'. | |
| series[].marker | string | Point symbol; none suppresses point markers. One of 'circle', 'square', 'triangle', 'diamond', 'none'. | |
| series[].smooth | boolean | Use monotone interpolation when true or linear interpolation when false; omission inherits chart interpolation. | |
| series[].interpolateGaps | boolean | true draws the line across a missing cell; false breaks it there, so no line suggests a value that is not there. Default false. |
Options
| Path | Type | Values | Default | Meaning |
|---|---|---|---|---|
| labelDensity | string | 'full', 'smart', 'minimal' | Default 'smart': every column total stays eligible. A chart with more than 12 categories, or with most totals wider than the band, ranks the first, last, highest and lowest (ties: the first) first. The other totals then use only their natural seat above the column; with none free they are drawn nowhere and left out of the note. Those four may take one step, and the note names any that finds no seat. A smaller chart keeps every total on the bounded one-step rule and names any that finds no seat. 'full' treats all totals alike and names every one that finds no seat. Seats stay inside the plot band and one step from the natural seat. Reading records keep every value. | |
| labels | false | object | false (or another value of its type) | Line end labels default to the value alone at both ends; point: ['series', 'absolute'] adds the series name. Authored point content applies to both ends. On stacked columns, segment: ['absolute', 'percent'] prints value and share in each segment, and a value its segment cannot hold is named in the note line; grandTotal: false hides stack totals. A single column series prints its values as grandTotal labels, so grandTotal: false hides them and keeps the line values; point governs line values only. Combo has no labels.growth: the growth statements of the dual-axis anatomy are dualAxis.growth. | |
| legend | string | object | 'top', 'bottom', 'right', 'left', 'none', 'auto' (or another value of its type) | Key position. Multiple series get a key unless direct labels name them. 'none' hides the key; render warns when names are missing. A series key also explains its scenario styling. | |
| categoryAxis | object | Category-axis settings: dateTicks. | ||
| secondaryAxis | object | Independent acknowledged secondary scale, or a percentage relabeling of the primary scale. An independent secondary scale returns the warning dual-axis. | ||
| secondaryAxis.acknowledge (secondaryAxis branch 1) | true | true | Explicit acknowledgment that the right axis uses an independent scale. | |
| secondaryAxis.domain (secondaryAxis branch 1) | array | Pin the secondary domain (data may only widen it, never be clipped). | ||
| secondaryAxis.format (secondaryAxis branch 1) | string | Format-by-example for the right-axis TICKS only (e.g. '1.2%'); wins over series formats. Data labels keep their series/scale formats. | ||
| secondaryAxis.show (secondaryAxis branch 1) | boolean | true | false keeps the independent scale and draws no right tick column: the secondary series is read from its labeled values and the secondary axis title, which sits at the right edge. Default true. | |
| secondaryAxis.ruler (secondaryAxis branch 2) | object | Percentage ruler derived from the primary scale and a declared total. | ||
| secondaryAxis.ruler.of (secondaryAxis branch 2) | string | 'primary' | Use the primary axis positions for the percentage ruler. | |
| secondaryAxis.ruler.total (secondaryAxis branch 2) | number | The quantity 100% refers to; positive and finite. | ||
| secondaryAxis.ruler.ticks (secondaryAxis branch 2) | integer | 5 | Tick INTERVALS on the percent ladder; default 5 ⇒ 0…100 by 20. | |
| viewDomain | object | Visible category window, retaining all source observations for means. A mean's Ø label names the periods it covers where the plot draws fewer. | ||
| viewDomain.x | array | Inclusive category ids bounding the visible x axis. | ||
| window | object | Display window for ordered periods: keep the last n categories. Means, the average marker and anomaly rules keep every source period, the subtitle says how many periods show, and a mean's Ø label names the periods it covers, 'Ø 40.4 (Jan 25–Dec 26)'. | ||
| window.last | integer | Keep the last n categories of the ordered series. | ||
| anomaly | object | Flag exceptional periods of the combo's one line series against a visible, named corridor on that line's axis, with column's rule: 'mad' flags |x − c| / (1.4826 × MAD) > k (c is 0 under the default baseline 'zero', the median under 'median'), 'threshold' flags values outside authored bounds. The corridor rules carry their numbers, each flagged point gets a marker beyond it and prints its value, the legend keys the marker and the corridor, and a footnote states the rule. Needs exactly one line-kind series. Under a window or zoom the rule keeps every source period. | ||
| anomaly.method (anomaly branch 1) | string | 'mad' | Use median absolute deviation to derive the anomaly corridor. | |
| anomaly.k (anomaly branch 1) | number | 3.5 | Flag threshold on the absolute modified z-score; default 3.5, the published threshold of the modified z-score method with the 1.4826 MAD scale. Do not pair it with a 3.0 rule of thumb from a different method. | |
| anomaly.baseline (anomaly branch 1) | string | 'zero', 'median' | 'zero' | Center of the judgment. 'zero' (default) reads the input as an already-computed deviation (surprise vs consensus, net cash movement, residual); 'median' centers on the series' own median. The SPREAD is measured around the actual median in both cases, so derived.anomaly reports centre and median as separate fields — under 'zero' they differ, and a levels series hands to this rule will flag almost everything (anomaly-most-flagged). |
| anomaly.label (anomaly branch 1) | string | Names the rule on the exhibit. It is prefixed to the derived sentence, never a replacement — the median, MAD, k and corridor always stay printed. | ||
| anomaly.method (anomaly branch 2) | string | 'threshold' | Use authored low/high bounds to flag anomalies. | |
| anomaly.low (anomaly branch 2) | number | Flag values strictly below this bound. | ||
| anomaly.high (anomaly branch 2) | number | Flag values strictly above this bound. | ||
| anomaly.label (anomaly branch 2) | string | Names the rule on the exhibit; the bounds stay printed. | ||
| axisTitles | object | One-line titles over the tick columns of active axes. Drawn only when authored; the engine infers none. | ||
| axisTitles.primary | string | Visible title above the primary value axis. | ||
| axisTitles.secondary | string | Visible title above the active secondary value axis. | ||
| interpolate | string | 'linear', 'step-after', 'step-before', 'monotone' | Interpolation for line/area series; per-series smooth overrides it. | |
| dualAxis | object | Dual-axis anatomy: both scales from zero with one interval count and shared gridlines, maxima chosen so the line runs above the columns (the columns shrink to a quarter of the plot when that is the only way; when no pair keeps the line above, the columns keep the lower 55% of the plot with the left ticks stopping at the column top, and the line floats in the band above on its own scale from its low to its high, with no right ticks and its ends, low and high printed, every point up to 8 categories, and the unit title over the top left tick; info lint dual-axis-line-floated. The line floats only when those values print or an anomaly on it prints its flagged values: valueLabels 'none', 'last' or 'ends', or line point labels off, keep the plain dual axis with its right ticks), axis titles with a swatch of their series, column values inside the column top, the line's values above their points on a halo (every point up to 8 categories, else the first and last). Column values the line still covers are dropped; when one value is wider than its column, every column value sits above its column instead (labels.grandTotal: false hides them). With valueLabels 'all' (the anatomy's default up to 8 categories) every value is labeled, so neither tick column is drawn and the axis titles key both series in one row from the left; valueAxis.show or secondaryAxis.show brings the ticks back, and so does a value that finds no seat. Authored valueAxis.min or max, or a negative value, keep the plain dual axis and report the info lint dual-axis-anatomy-off. | ||
| dualAxis.anatomy | boolean | true draws the dual-axis anatomy on an acknowledged secondary scale the author did not pin. Default: the theme's valueAxis.dualAxis, else false. | ||
| dualAxis.growth | boolean | false | With the anatomy, states each series' growth from its first to its last complete value beyond the right ticks, bold in the series' text ink, on one line with the series name up to its first comma ('+128% Units sold'); the name goes under the figure when one line would take more than a fifth of the canvas width. A partial category is no end, and the name then says the span. On a canvas narrower than 600 px the statements move to one note line ('Units sold +128%, Revenue +33%, 2019–2024.') and the plot keeps the width. Default false. | |
| valueLabels | string | 'none', 'last', 'ends', 'extremes', 'all' | Which line values print, each at its point; the key row names the series. 'none', 'last' (default; the dual-axis anatomy defaults to 'all' up to 8 categories, else 'ends', and a line floated over the columns to 'all' up to 8 categories, else 'extremes'), 'ends' (first and last), 'extremes' (ends plus low and high) or 'all'. Interior values sit on the side away from other lines, never nearer another line, or on the column with a backing; authored cell labels always print. | |
| latestPoint | string | 'ring', 'none' | Ring the last observed point of the lead line in the highlight color, r 4.5 with a dot inside it, as on the line chart. 'ring' picks the first line series that is not a prior year, plan or forecast, and a forecast or plan point is never the one ringed. 'none' rings nothing, including the ring a theme with an ink lead line draws by default; omitted, the theme decides. | |
| averageMarker | boolean | object | Computed dashed average rule with a solver-placed Ø label on the primary axis, as on column: the mean over every category of the column stack, the columns in scope summed ('all' by default). A line named in the scope is left out with the warning average-marker-scope. | ||
| averageMarker.scope | string | array | 'all' (or another value of its type) | Series included in the computed average; defaults to 'all'. | |
| averageMarker.includePartial | boolean | true averages the categories marked partial too. By default they are left out, and the label names the periods the average covers. Column, bar and combo. | ||
| referenceStyle | string | 'tick', 'line', 'marker' | 'tick' | How reference series draw, as on bar and column: 'tick' (default) a solid plan tick across the column, 'line' the same span dashed at 1.25px, 'marker' a dot at the column center. |
| referenceTick | object | Weight and ink of the reference tick, as on bar, read under referenceStyle 'tick' only: the dashed 'line' keeps its 1.25px and the 'marker' its dot. | ||
| referenceTick.width | number | 2.2 | Stroke width of the tick in px; default 2.2. | |
| referenceTick.color | string | 'ink', 'highlight' | Ink of the tick; default 'ink', or the series fill or colorRole where one is set. 'highlight' is the accent for the one mark the reader should find first. | |
| events | object | Event lane and key. Events are annotations of kind event with at or date, an optional end or to for a period, group, detail, priority and, on column, combo and line charts only, items (more changes on the same date). Gantt events take one label and refuse items. | ||
| events.placement | string | 'auto', 'key' | 'auto' | auto uses lane then key, key uses key only. 'auto' (default) sets events in the lane above the plot where they fit and numbers the rest into the key below it; 'key' draws every event as a numbered marker with its entry in the key. Under footnotes: false there is no key: those events are left off and listed in the footnotes-off lint. |
| events.rows | integer | Lane rows for event blocks. Default by canvas width: 1 under 1080px, 2 from 1080px. 0 draws numbered markers only. A row gives way while the plot band left under the lane would keep less than 40% of the canvas height. | ||
| events.groups | array | Kinds of events, authored once: label, tone and glyph. | ||
| events.groups[].id | string | Group id that events name in their group field. | ||
| events.groups[].label | string | Kind label printed in the block header and the key, such as Out of stock. | ||
| events.groups[].tone | string | 'neutral', 'bad', 'good' | 'neutral' | Color of the glyph, the marker ring and the period bar; default neutral. An event tone overrides it. |
| events.groups[].glyph | string | 'dot', 'triangle', 'diamond', 'square' | Shape that marks the kind without color; default by group order: dot, triangle, diamond, square. | |
| events.keyTitle | string | Heading printed over the event key. |
Plus the shared options. This type does not accept valueAxis.log, valueAxis.reverse, valueAxis.break. This type ignores animate, debug, rowLabels, sort, topN with an option-ignored warning.
Annotations
An annotation anchor is a category or item id string, or an object with categoryId plus optional seriesId, segmentId and edge (start, end, total); pointId addresses a scatter point. Category anchors, including from/to, take category ids, not category labels.
| Kind | Purpose | Required | Anchors | Optional fields | Notes |
|---|---|---|---|---|---|
| cagr | Draws a growth arrow between two anchored points and computes the compound annual growth rate from their values and ISO-date span. | from: AnchorRef (optional); to: AnchorRef (optional) | suffix: string, default 'p.a.'. Text after the rate. period: boolean. Print the period before the rate from the anchors' category labels, '2014–2019: +5.8% p.a.'. Default true when the chart carries two or more CAGRs, so nested brackets are told apart by their text, false otherwise. An arrow's ends show its span, so an arrow prints the rate alone unless period is true. shape: bracket | arrow, default bracket. arrow draws one straight arrow over the marks with the rate in an oval on it, lifted until it clears them. Where no straight line clears the chart, the span is too short for the oval, a stack's inner layer is the anchor or the chart lays comparisons out itself, it draws the bracket and warns cagr-arrow-no-room. | Omitted endpoints span the first to the last category, or the first to the last total on a waterfall. Resolved endpoints need a positive date interval from ISO dates or year-bearing labels and a positive start value; an end of zero reads -100%, and a start at or below zero or a negative end omits the rate and warns cagr-undefined. On a continuous time axis the years are the exact span between the two readings. An anchor on one series of several (seriesId, or a category of an unstacked line, which reads the first drawn series; on a stack a category reads the stack total) names that series in the label, "Product B +10.1% p.a.", and the arm runs from that series' segment or point. In text, ${value} prints the rate with its suffix, so "CAGR 2014–2019: ${value}" keeps the computed number. Drawn reference series accept anchors. | |
| diff | Draws a level-difference arrow between two anchors and computes either percent change or their signed value difference. | from, to | from: AnchorRef; to: AnchorRef | mode: relative | absolute | reversed | both, default relative. relative prints the percent change from 'from' to 'to', reversed the change from 'to' to 'from', absolute the value difference, both the value difference with the percent change beside it. | Mode defaults to relative. Relative and reversed changes need a nonzero base; negative bases use its absolute magnitude and emit a warning. Absolute mode reports the raw value difference. A hidden label removes its arm. Drawn reference series accept anchors. |
| delta | Computes the signed difference between an anchored value and another anchor or literal, then places a collision-managed label at the first anchor. | at, vs | at: AnchorRef; vs: AnchorRef | number | mode: absolute | relative | both, default absolute. absolute prints at minus vs, relative the percent change from vs to at, both the two as '+149 (+36%)'. relative and both need a nonzero vs. | Drawn reference series accept anchors. |
| note | Places authored text at an anchored data element through collision avoidance, with an optional icon or status chip. | at, text | at: AnchorRef | Drawn reference series accept anchors. | |
| callout | Places authored free text at an anchored data element, routing a leader when displaced and honoring the preferred side. | at, text | at: AnchorRef | preferSide: left | right | above | below. Side the solver tries first; the label keeps a leader when it moves. headline: string. A bold first line over the text, which then prints in plain type; ${value} in it prints the anchored value from the data. Example: "headline": "${value}", "text": "Peak in handheld-loom demand" prints 153 in bold over the words. arrow: boolean, default false. An arrow from the text to the anchored point, in the arrow standard of theme marks.arrow: the text stands far enough out for a 24 px shaft, level with the point right or left of it, or over or under it, where there is room. With no such seat it draws without the arrow and warns callout-arrow-no-room. Not with icon or status. Example: "arrow": true. | Drawn reference series accept anchors. |
| valueLine | Draws a reference line at an authored value or an engine-computed mean, with optional tolerance shading and attainment fill between the line and resolved actuals. | from: categoryId (optional); to: categoryId (optional) | value: number | 'mean', default mean. A number draws the line there; mean has the engine compute it. valueKind: 'fraction'. Multiply a numeric value and its tolerance by 100 before layout: 0.35 draws at 35%. Independent of data.valueKind. Omit it for values already in percent points; not valid with mean. label: string | false. Name plus value; ${value} sets its position. A number already in the name is kept once. false hides it. side: left | right, default right. Side of the plot the label sits on. axis: primary | secondary, default primary. Scale of value; secondary needs an acknowledged secondary axis. tolerance: number | { low, high }. A number shades that distance on both sides of the line; low and high shade an authored corridor. On column, bar and dot the key names the band with its bounds, "Target range: 95 to 105"; without a key the band prints its bounds itself. | No anchor is required. Value defaults to mean. Scoped means are line-only: seriesId and paired from/to compute a primary-axis mean and limit its stroke to those bands; other types refuse scope fields for a mean. Numeric values cannot use scope fields except as a category clip with tolerance or attainment. A secondary-axis line needs an acknowledged secondary scale and an explicit numeric value. Optional tolerance shades a value-axis band; optional attainment fills between the line and resolved actuals. | |
| abs | Reads the anchored data value and places its formatted absolute value in a collision-managed label. | at | at: AnchorRef | Drawn reference series accept anchors. | |
| event | Places a dated event in the lane above the plot as a block with a pole to the data, or, when it does not fit, as a numbered marker with an entry in the event key below the plot; periods draw a thin bar. | label | at: categoryId (optional) | date: ISO date yyyy-mm-dd, in place of at: the event sits at the last category whose date is on or before it, and the block header and the key print it as d MMM. Every category needs an ISO date; a date outside the categories warns event-out-of-range. end: ISO date, with date: the event is a period, drawn as a thin bar to the end of that day. to: Category id, with at: the event is a period to the end of that category. group: Id of a group in options.events.groups, which gives the kind label, tone and glyph. detail: string | string[]. Authored lines under the title, at most three in the lane; nothing is cut, a longer block moves to the key. items: { label, detail? }[]. More changes on the same date, after this event's own label and detail. The lane and the key draw a compact +N after the title; the hover card, the SVG title and description, and the interaction records list every item in full. placement: auto | key, default options.events.placement. key numbers this event into the key below the plot. tone: neutral | bad | good, default the group tone, else neutral. Column, combo and line paint the glyph, the marker ring and the period bar in it; gantt paints a bad rule. | Exactly one of at (a category id) and date (an ISO date) places the event; end or to makes it a period. The event lane above the plot sets a block of group and date, title and detail with a thin pole to the data; an event that does not fit, a second event on one category and every event under options.events.placement 'key' get a numbered marker and an entry in the key below the plot, numbered in time order; under footnotes: false they are left off and listed in the footnotes-off lint. The full date, title and detail of every event stay in the SVG title and description, the interaction records and the hover card, whether or not the lane or the key prints the detail. In compact mode the lane is one row of numbered markers and the key packs "n date title" into as few lines as the width allows; where the plot would still fall under 80px the key keeps "n title" and the info lint event-lane-compact says so. options.events.rows sets the lane rows (default by canvas width: 1 under 1080px, 2 from 1080px); a row gives way while the plot band left under the lane would keep less than 40% of the canvas height. |
| band | Draws an inclusive category span as a shaded band or bracket, or a value-axis plan corridor, tolerance band or attainment fill, with a collision-managed label. | from: categoryId (optional); to: categoryId (optional) | Era shade/bracket needs inclusive category IDs. Corridor and tolerance use finite low/high on the value scale, with optional from/to as a category clip. Attainment needs a plan value and shades each resolved actual; missing cells are skipped. Divider applies only to bracket bands. Scenario AC/PY/PL/FC paints a plan corridor (default PL). | ||
| text | Places authored text at a point through the label solver: on the point, or above, below, right or left of it. The text prints as written. | at, text | at: AnchorRef | { categoryId, value } | A point is an anchor or { categoryId, value } with value in axis units. A value outside the plot, a chart with no value scale or an anchor that does not resolve warns bad-anchor and draws nothing; the axis does not grow. The text prints as written, ${value} included. It takes id and priority, and no other field. | |
| line | Draws a straight line between two points or from a text annotation, in the ink and rule width of a bracket; a stretch that would cross text is cut. | from, to | from: AnchorRef | { categoryId, value } | { annotationId }; to: AnchorRef | { categoryId, value } | { annotationId } | dashed: boolean, default false. Draws the line in the dash of a reference line. | A point is an anchor or { categoryId, value } with value in axis units. A value outside the plot, a chart with no value scale or an anchor that does not resolve warns bad-anchor and draws nothing; the axis does not grow. An end { annotationId } names a text annotation: the line starts or ends at the nearest edge of that text, at every size, and is not drawn when the text is not. A { categoryId, value } end stands on the category's center. A stretch that would cross text is cut and warns draw-crosses-text. It takes dashed and id, and no other field. |
| arrow | Draws a straight arrow between two points or from a text annotation to a point, in the theme arrow look (marks.arrow); a stretch that would cross text is cut. | from, to | from: AnchorRef | { categoryId, value } | { annotationId }; to: AnchorRef | { categoryId, value } | { annotationId } | dashed: boolean, default false. Draws the shaft in the dash of a reference line. | A point is an anchor or { categoryId, value } with value in axis units. A value outside the plot, a chart with no value scale or an anchor that does not resolve warns bad-anchor and draws nothing; the axis does not grow. An end { annotationId } names a text annotation: the arrow starts or ends at the nearest edge of that text, at every size, and is not drawn when the text is not. A { categoryId, value } end stands on the category's center. A stretch that would cross text is cut and warns draw-crosses-text. It takes dashed and id, and no other field. |
| box | Draws an unfilled box with two points as opposite corners, wrapping whole category bands, in the ink and rule width of a bracket; text inside the box stays free. | from, to | from: AnchorRef | { categoryId, value }; to: AnchorRef | { categoryId, value } | dashed: boolean, default false. Draws the edges in the dash of a reference line. | A point is an anchor or { categoryId, value } with value in axis units. A value outside the plot, a chart with no value scale or an anchor that does not resolve warns bad-anchor and draws nothing; the axis does not grow. from and to are opposite corners, the box has no fill, and text inside it stays free. A { categoryId, value } corner spans that category's whole band, so the box wraps whole bars, values and markers; from and to on one category wrap that category. A stretch that would cross text is cut and warns draw-crosses-text. It takes dashed and id, and no other field. |
Overlay or dual axis
A combo draws combo.overlay when every series reads the primary axis, and combo.dual-axis when a line or area series sets axis: 'secondary' with an acknowledged secondaryAxis (a column series always draws on the primary axis). Revenue columns with a rolling-average line on one scale are combo.overlay (fixture option-reference-line). Revenue columns with a units line on its own scale are combo.dual-axis (fixture revenue-units-secondary).
Value labels and reference labels
Line endpoints and reference labels take seats before column values. Column values stay inside the plot band. They use their natural seat, one shifted seat, then an inside-end seat if one fill can hold them. The default labelDensity: 'smart' ranks the first, last, highest and lowest column totals first in a chart with more than 12 categories or with wide totals; the other totals use only their natural seat and are left out of the note when it is taken. Use labelDensity: 'full' to treat all totals alike. Reading records keep every value.
Sizing
Floor 480 × 270 px; fit fill. Below 480 px wide or 270 px high, down to the compact floor of 280 × 240 px, the chart draws in compact mode; belowMinimum: 'refuse' refuses there instead.
Below the floor a render is refused with size-below-floor and the pixels it needs. measure returns the natural and comfortable size for a given spec; see Sizing in the manual.
Fixtures
| ID | Kind | Use case |
|---|---|---|
| revenue-units-secondary | example | Revenue columns + units-sold line on acknowledged secondary axis, every value labeled |
| margin-line-own-scale | example | Revenue columns with the EBITDA margin % line on its own scale, no right ticks |
| line-labels-extremes | example | Order columns with a conversion line labeled at its ends, its low and its high |
| line-labels-none | example | Revenue columns with a units line read off its own tick axis, no point labels |
| stacked-shares-sum | torture | Torture: stacked segment shares that add up to 100% in every column |
| line-only | torture | Torture: combo with no column series (area band + two lines) |
| dense-12-months | torture | Torture: 12 monthly categories, stacked columns + line, smart density |
| negative-columns-line | torture | Torture: negative columns with a line dipping below the baseline |
| smooth-forecast-overlay | example | Monotone combo overlay stays continuous as actuals turn to forecast dashes |
| secondary-axis-direct-labels | example | Secondary axes identified by full series names and endpoint values |
| zoom-preserves-source-mean | torture | Zoom retains the full-series mean |
| theme-dual-axis-anatomy | example | A theme draws every acknowledged dual axis with its anatomy |
| revenue-units-dual-axis-anatomy | example | Dual-axis anatomy: shared gridlines, the line above the columns, both growth rates stated |
| daily-columns-rate-reference | torture | Daily columns, rate endpoints and a named reference on a flat dashboard |
| dual-axis-line-floated | example | A margin line floats over the revenue columns on its own scale |
| option-step-after | example | Output and available capacity |
| option-step-before | example | Output and available capacity |
| combo-end-label-collision | torture | Line end value and last column total placed as a pair |
| combo-partial-week | example | Weekly orders against plan with the running week marked partial |
| torture-long-labels | torture | Torture: long names at a generous size read whole, never cut |
| option-ink-lead-line | example | Columns in a tint of the focus, the lead line in the ink with a ring on its last point |
| weekly-events-lane | example | Event lane over columns and a prior-year line: stock-outs and launches, the rest numbered in the key |
| events-key-only | example | Event key only over columns and a prior-year line: numbered markers in time order |
| option-latest-point-ring | example | Revenue columns with the rolling average, its latest quarter ringed |
| option-reference-line | example | Revenue columns with the plan as dashed lines and a rolling average |
| option-reference-marker | example | Revenue columns with the plan as markers and a rolling average |
| option-reference-tick-highlight | example | Revenue columns with 2 px plan ticks in the highlight and a rolling average |
| option-average-marker | example | Monthly revenue columns with the average of the columns as a dashed Ø rule |
| option-band-shade | example | Monthly revenue columns with the months of a price test shaded |
| option-window-last-8 | example | Sixteen weeks of revenue and conversion, the last eight drawn (window.last) |
| option-anomaly-line | example | Revenue columns with the average order value judged by column's anomaly rule |
| secondary-domain-format | example | A secondary axis pinned to 0 to 60 with one-decimal ticks |
| capacity-ruler-quarters | example | A percentage ruler in four steps of 25 |
| order-value-threshold-corridor | example | Authored anomaly bounds with a named rule instead of the MAD corridor |
| order-value-strict-k | example | The MAD rule with a stricter k of 5 |
| revenue-events-key-title | example | Events as numbered markers only, keyed under an authored heading |
| line-ends-named | example | The line end label set through the labels object |
| stroke-marker-sampler | torture | A capacity area under a solid actual, a dashed forecast, a dotted plan and a plain shipments line, each with its own marker |
| single-populated-stack | torture | One populated stack part prints once |
| default-series-key | torture | Three series and a line retain their names |
| counts-fraction-rate | example | Count columns and a fraction rate on its own axis |
| band-label-headroom-rising-tail | torture | A band label over a rising tail takes headroom above the plot |
| ranked-campaigns-key-shown | torture | Campaign names too long for their columns read as ranks with the key printed (notes.show) |
| ranked-campaigns-rank-key-only | torture | Campaign names too long for their columns read as ranks; only the rank key prints (notes.show ranks) |
| area-capacity-behind-columns | example | Order columns in front of a capacity area, with a plan corridor and a launch period |
| inside-base-values | example | Combo column values inside the base |