Open Presentation

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Chart options: axis titles, legend position, data labels and highlight

    Status: RR-35 (release readiness) for axis titles, legend and data labels, FA-14 (format audit) for highlight, and RR-89 and RR-92 (core 0.21.0) for series colors (chart.colors) and the computed value axis. The first four fields change geometry only for charts that use the first three fields, and colors only for charts that use highlight. Use the coordinated package set in the compatibility matrix; schema support alone does not establish native visual fidelity.

    Native export data domains and limitations

    PowerPoint's native categorical Pareto aggregation can omit negative categories even when its workbook and caches retain them. A single-series Pareto with signed category values therefore exports, in default/auto/native modes, as an editable classic combo: descending signed columns plus an explicit positive-only cumulative-share line on a secondary 0–1 axis. Negative values remain visible bars and do not subtract from the cumulative share. The cumulative cells are static values: native bar edits do not recalculate them. Import returns the actual combo with its sorted/derived series, not the original Pareto source form. Positive categorical Pareto and raw-sample binning retain their native constructs. Explicit chartex: "fallback" retains the documented column-only representation and its adaptation diagnostic.

    A categorical histogram exported as classic columns keeps the preview's broad bars (6% gap) and composed histogram value-axis bounds and unit. It is still a column representation, with an adaptation diagnostic where native aggregation cannot display signed category data; it does not establish native histogram editability or complete visual parity.

    Native funnel labels have a separate Office limitation: PowerPoint can ignore the written label color and choose its own contrast color, observed as white where the renderer uses black. Export reports export-lossy with feature: "funnel-label-color" when native funnel labels are enabled. The chart remains editable. XML contrast checks establish only the requested paint, not the physical color PowerPoint renders.

    The fields

    Four optional fields on the Chart object (the fourth, highlight, has its own section below):

    json
    {
      "chart": {
        "type": "column",
        "data": { "columns": ["Quarter", "Revenue"], "rows": [["Q1", 12], ["Q2", 18]] },
        "axisTitles": { "category": "Quarter", "value": "Revenue ($M)" },
        "legend": "bottom",
        "dataLabels": { "content": ["value"], "position": "outside-end" }
      }
    }
    FieldValuesAbsent means
    axisTitles{ category?: string, value?: string, secondary?: string } (secondary: combo charts)no axis titles (today)
    legendnone, top, bottom, left, righta line chart of two to four series names its series at the line ends and a pie or one-series doughnut names its slices, with no legend (each falls back to its legend when the names do not fit); a column, bar, area or combo chart of two to four series shows its legend in the header row above the plot; other multi-series charts and pie and doughnut charts a legend at the right; none for a single-series chart
    dataLabelstrue, false or { content?, position?, separator? }no data labels, except on a small chart, which labels its values, and the direct labels of line, pie and doughnut charts; the funnel and treemap constructs keep the labels they draw by default (values, category names)

    axisTitles.category titles the axis that carries the row labels: the horizontal axis of a column, line, area, histogram, pareto, waterfall and box-and-whisker chart, the vertical axis of a bar chart and the X axis of a scatter chart. axisTitles.value titles the other one. A named legend position shows the legend there even for a single-series chart; none hides it.

    dataLabels: true is { "content": ["value"], "position": "auto" }. dataLabels: false draws no labels: on a small chart it switches the default value labels off and brings the value axis back, and on the funnel and treemap constructs, which label their marks by default, it removes those labels (resolveChartOptions reports dataLabelsOff). In the object form:

    • content: any of category, value, percent (default ["value"]). A label shows the selected parts in the fixed order category, value, percent, joined by separator (default ", "). Values print in the General number format (twelve significant digits), percent as the integer share of the total (0%), category as the category name (the X value on a scatter chart).
    • position: auto (default), center, inside-end, inside-base, outside-end, above, below, left, right. auto is the type's default in the table below; the engines write that concrete position, so the preview and PowerPoint do not each pick their own.
    • separator: text between the parts.

    Chart emphasis: highlight

    Highlighting the one series or category that carries the message, and muting the rest, is the main data-storytelling technique. The content stays semantic: highlight names series and categories, and the engines pick the colors from the theme. There is no color field.

    json
    {
      "chart": {
        "type": "column",
        "data": { "columns": ["Quarter", "Revenue", "Costs"], "rows": [["Q1", 12, 8], ["Q2", 18, 11], ["Q3", 24, 15]] },
        "highlight": { "series": ["Revenue"], "categories": ["Q3"] }
      }
    }
    FieldMeaning
    highlight.seriesValue columns (series) whose marks are highlighted: every mark of each named series. Names match the data column names after any fields selection; a series is a plotted value column.
    highlight.categoriesRow labels (the category column, or mapping.category) whose marks are highlighted: a column or bar of every series, a line's points, a pie or doughnut slice. Labels match as text (the number 2024 as "2024") and a label shared by several rows highlights each of them.

    The rule. When highlight is present, a mark is highlighted if its series OR its category is listed. Highlighted marks take the deck's primary (accent) color; every other mark takes a muted neutral derived from the theme. With both lists given, a bar of series Revenue in any category is highlighted, and so is a bar of category Q3 in any series. A chart without highlight keeps its colors, byte for byte. A highlight that names nothing the chart plots (for example a column that is the category column) leaves the chart as if it had none.

    The colors come from core's chartHighlightColors(surface, primary, text), which the preview and the PPTX export both call with the chart's backdrop (the card or the slide background: no chart has a panel, LH-105), the deck primary and the chart text color:

    • the accent is the primary color, kept at 3:1 contrast against the panel by chartColorForFill (a primary that already has that contrast is used unchanged);
    • the muted color is the panel mixed 30% of the way toward the text color: a light gray on a light panel and a dim gray on a dark one, in the panel's own hue. If that is under 1.6:1 against the panel, the mix moves toward the text color until it holds, so a muted mark is always visible and always quieter than the text.

    Data labels stay readable: a label inside a mark takes the text color that contrasts with that mark's own color (core textColorForFill), so a label on a muted bar contrasts with the muted fill, as one on an accent bar does with the accent. Labels outside marks keep the chart text color. The legend shows each series in the color its marks have: accent for a highlighted series, muted otherwise. (A multi-series chart that highlights only categories mutes every series alike, so its legend keys look the same; name the series too when the legend matters.)

    Validation. A name that matches no data column (series) or no row label (categories) is a chart-highlight-unknown-name error, found by resolveChartData like chart-mapping-unknown-column. A series name that is a column but not plotted as a series (the category or X column, or a column mapping.series leaves out) is a chart-highlight-adapted warning and highlights nothing. A part the chart type cannot highlight is dropped with a chart-option-adapted diagnostic (option highlight.series or highlight.categories). highlight must name at least one series or category, and each list has no duplicates.

    What each chart type highlights

    chartOptionSupport(target).highlight returns { series, categories }; the validator, the preview, the exporter and the editor all follow it.

    Type (catalog ids)SeriesCategoriesWhat is drawn
    clustered column, baryesyesthe series' columns or bars; a category's column or bar in every series
    stacked and 100% stacked column, baryesyesthe same, per segment
    line, stacked line, with markersyesyesa series' line and markers; a category highlight draws a marker on each series at that category (on a line without markers, only there)
    area, stacked area, 100% stacked areayesnothe series' area
    scatteryesnothe series' markers (a scatter point label is not a category)
    radar, with markers, filledyesnothe series' line (or fill) and markers
    pie, doughnutnoyesthe slice of each named category (a pie plots one series, so a series name is meaningless); every other slice takes the one muted neutral, so the unhighlighted slices look alike and a legend cannot tell them apart (name the slices with dataLabels category, or leave highlight out, or write "highlight": { "categories": [] }, which also turns off a highlight the title would derive, to keep every slice its own palette color)
    histogram, pareto, waterfall, funnel, treemap, box and whisker, world, combonononot supported: dropped with chart-option-adapted

    The Office 2016 (chartex) constructs are left out on purpose. Their marks take their colors from the construct's chart style, and a per-point color (cx:dataPt) would need native verification this change does not have; the waterfall also already colors its marks by increase, decrease and total. They draw and export as before.

    Series colors

    Series colors follow the deck's color scheme by default: the same chart takes the colors of whichever scheme the deck uses (design.colorScheme, the theme's scheme, a catalog record, a built-in such as vibes, or an inline scheme with slot overrides). To set the color of one series, slice or category, list colors in chart.colors; a position it does not list keeps the deck palette.

    Core's chartSeriesPalette(colorScheme) (on @openpresentation/opf/composition) returns the twelve colors the preview, the PPTX export and the chart-color-only accessibility rule all use, in this order:

    SeriesColor
    1 to 6accent1 to accent6 of the resolved color scheme (a slot the scheme leaves out takes the engine default scheme's slot)
    7 to 12the same six accents mixed 40% toward white, in the same order (series 7 is a tint of accent1)

    Series i takes color i; a pie, doughnut, treemap or funnel colors category i with color i. A chart with more than twelve series repeats the list (and chart-color-only says so). The primary, secondary and accent role overrides do not reorder the list: series 1 to 3 are always accent1 to accent3, the slots the PPTX export writes as theme colors.

    Both engines then pass the list through chartPaletteForFill(backdrop, palette, { legible: chartSchemeSeries(chart.colors, colorScheme), soften: true }), which keeps every series at 3:1 contrast against the backdrop the chart stands on (the card, or the slide background; LH-105: no chart has a panel) and apart from its neighbors, so on a dark panel the colors are lightened, never merged. On a dark panel every series that comes from the scheme (not from an authored colors entry) reaches 4.5:1, and series 2 keeps a lightness step of at least 20 (CIE L*) from series 1, so the first two series never read as one blue (LH-55). The palette is read in tiers of six (series 1 to 6, then 7 to 12): a color is kept apart from the colors of its own and earlier tiers only, so the tints never pull the six accents towards each other. Plan a chart's series order for the scheme: put the series that carries the message first (accent1 is the deck's primary), and keep a chart to six series or fewer so no tint is needed. The highlight colors above are separate: they come from the primary and the panel, not from this list.

    A host that validates with its own palette passes ValidateOptions.chartPalette; without it the rule judges each slide's own scheme.

    Setting colors: chart.colors

    colors lists colors by position and replaces the palette color of that position; the rest of the palette is unchanged.

    json
    {
      "chart": {
        "type": "column",
        "data": { "columns": ["Quarter", "Revenue", "Costs"], "rows": [["Q1", 12, 8], ["Q2", 18, 11]] },
        "colors": ["accent3", "#7B241C"]
      }
    }
    • Position. Entry i is the color of series i (the i-th plotted value column), of slice or category i on a pie, doughnut, treemap or funnel chart, and of the i-th color a histogram, pareto, waterfall or box-and-whisker chart draws with (the first color for its bars, the second for its line or negative bars, the third for a waterfall total; a waterfall with colors keeps these positions instead of the role colors of Chart marks). Up to 24 entries; positions past the last entry keep the deck palette.
    • Values. Any ColorRef: a hex color, a color-scheme slot or role (accent3, secondary), or a var:<id> color variable. A scheme name follows the deck if its scheme changes and is written to PowerPoint as a theme color; a hex color stays as written. Alpha is dropped. An entry that cannot be resolved is ignored (the palette color of its position is used) and opf/chart-colors-adjusted says so.
    • Contrast. Colors still pass through chartPaletteForFill: one with under 3:1 contrast against the backdrop is drawn lighter or darker, and series are kept apart. opf/chart-colors-adjusted warns when that happens to an authored color, and opf/chart-color-only judges the authored colors for color-blind and grayscale collisions.
    • Highlight wins. With chart.highlight, highlighted marks take the primary color and every other mark the muted neutral, whatever colors says.
    • Engines. Core resolves the list with chartSeriesPalette(colorScheme, chart.colors, { roles, variables }) (and resolveChartColors for the entries alone); the preview and the PPTX export pass the result to chartPaletteForFill as before.

    Value axis

    A column, bar, line or area chart (standard, stacked and 100% stacked) has one value axis, and composition computes it: composeSlide puts { min, max, majorUnit } on the composed chart item as chart.valueAxis. The preview draws that axis and the PPTX export writes it as c:min, c:max and c:majorUnit, so PowerPoint and Keynote show the same gridlines as the preview instead of choosing their own major unit. A 100% stacked chart's axis is a fraction (max: 1 is 100%) and carries percent: true. Combo, scatter, pie and the Office 2016 constructs have no computed axis (chart is absent); each engine keeps drawing them as before.

    Radar layout (RR-105). Core lays a radar out once (chartRadarLayout, chart.layer.radar): its value axis (axis: { min, max, majorUnit }, niceScale with endOnTick and as many intervals as the web's radius holds lines of text), which the preview draws and the PPTX export writes as the radar's c:valAx scaling, and where its default legend (two or more series, no legend option) stands. The legend moves under the web (legend: "bottom", legendBox) when that gives the web a radius at least RADAR_BOTTOM_LEGEND_GAIN (1.1) times larger than a side legend does, as in a box taller than it is wide; the export writes it as c:legendPos b at core's box (a manual layout) with the plot area above it, and the import reads that legend back as the default, not as legend: "bottom". In automatic composition a radar's box is at most square (other charts at most 4:3 landscape in a cell), so three radars in a row are as tall as they are wide.

    Sibling charts (LH-33, LH-93). Column, bar, line and area charts on one slide that run the same way, are both 100% stacked or both not, and plot one unit (the same first-series number format, or the same series names when unformatted) share one value axis (shareSiblingChartAxes). Column, line and area charts of such a set also share one plot height, so equal values stand equally tall: core lays each member's plot out as the preview does (chartPlotInset: under the header row or a top legend, above a bottom legend, the category axis title and the category labels, beside the value axis title, the tick labels and a side legend), and shareSiblingPlots gives the set the shortest plot's height. Charts side by side (boxes that overlap by half the shorter one's height) share one plot top and baseline; a chart in another row keeps its own baseline. The plot is stored as an inset from the chart box, chart.layer.plot ({ left, top, right, bottom }, slide pixels); the preview draws its plot there and the PPTX export writes it as the plot area's manual layout (c:plotArea c:manualLayout, layoutTarget inner), so PowerPoint draws the same plot. Horizontal bar charts of such a set (LH-93 remainder), whose value axis runs across, share one plot too (horizontalBarPlot, laid out as the preview lays a horizontal bar chart out): charts side by side share one plot top and height (their category bands line up), charts one above another start their plots at the same x, and every member takes the set's narrowest plot width, so one value is one bar length on every chart. A horizontal chart with chart options or drawn on a table's rows (LH-115) keeps its own plot, and so does the rest of its set. Stacked and percentage-stacked siblings share their final plot too; afterward their original-size direct names/values are fitted again, restoring the existing legend or numeric axis when the common plot needs it.

    The scale is core's niceScale(dataMin, dataMax, maxIntervals, { percent }): zero is on the axis (always for bars and areas; for a line only when the data does not sit in the top sixth of its range), the data gets 5% headroom, and the major unit is the smallest 1, 2 or 5 times a power of ten that fits maxIntervals intervals. maxIntervals is maxIntervalsFor(length, labelExtent), at most CHART_MAX_INTERVALS (6, LH-105), where length is the plot's extent along the value axis estimated from the chart box (without measuring text) and labelExtent is the space one tick label needs: a column, line or area chart has box height - 2 x pad - 1.5 x line height (less a line for a category axis title, and a line plus a pad for a top or bottom legend) over 1.2 line heights, a bar chart 70% of the box width - 2 x pad - text size over 4 text sizes. Here pad is 10 x scale, text size is chartTextSize(...) x scale px and line height is 1.5 text sizes. chartTextSize({ width, height, scale, minFontSizePx }) is the chart text size the preview draws: CHART_TEXT_PX (20 px at the 1280 x 720 reference, 15 pt), shrunk only when the box is small (at most 1/18 of the box height and 1/30 of its width, whole pixels) and never below minFontSizePx (default 16), with scale = min(slide width, slide height) / 720. A chart in a short box therefore has fewer, larger intervals (0 to 800 in steps of 100 in a tall box, steps of 200 in a short one); a tall box always gets six at most (0 to 800 in steps of 200). An axis with room for three intervals or more is never tightened to one (LH-105): when no equal division of the tightened end fits, a finer end is tried (data peaking at 116: 0 to 125 with ticks every 50, not 0 and 140).

    The axis maximum stays near the data (LH-59): it is at most CHART_AXIS_MAX_OVERSHOOT (a quarter) of the plotted range above the data maximum, 1.25 x the maximum on a zero-based axis. When the first major tick above the headroom lies further out (a short axis of one or two intervals: data peaking at 124 on an axis of 0 to 200), the axis ends at the first multiple of the largest finer 1, 2 or 5 unit within that bound (150). The ticks keep the major unit when the last one is at most half a unit below that end (0 to 40 in tens, ending at 45; the end is then not a labeled tick, as PowerPoint draws a c:max off the major unit); otherwise the end is divided into as many equal intervals as fit, each a multiple of that unit (0, 400, 800 for data peaking at 760; 0 and 150 in one interval), with zero kept on a tick. Every chart the preview scales this way follows the rule: the column, bar, line and area axis core composes (and the PPTX export writes), the histogram, pareto, waterfall and box-and-whisker constructs and the scatter axes. The radar and the combo chart keep the end on a tick (niceScale(..., { endOnTick: true })): the radar's outer ring and the combo chart's shared gridlines are the axis end. Only the maximum is tightened; a negative minimum keeps its major-unit tick, so zero stays on a gridline in PowerPoint too.

    Native horizontal category names (LH-93). Category names sit in the physical left gutter in both LTR and RTL; horizontal bars retain a top-to-bottom category axis and left-to-right numeric axis in RTL. When the computed numeric minimum is negative, PPTX writes c:catAx/c:tickLblPos low, so Office does not attach the names to the zero crossing. It keeps the axis crossing, bounds, fonts and authored axis titles/legend/data-label options. Ordinary nonnegative exports retain their previous bytes. A horizontal chart with explicit options still uses Office's automatic inner-plot dimensions: its native width/height can differ from the preview, an inherited limitation untouched by this label correction. No invented plot inset or exact options-plot parity is claimed.

    Bar width and gap (LH-176). Clustered columns and bars leave a gap of 1.5 bar widths between categories and stand side by side; stacked and 100% stacked ones leave half a bar width and stand on one another (CHART_BAR_GAP_WIDTH: DrawingML c:gapWidth 150 and 50, c:overlap 0 and 100). The gap is a share of one bar, as PowerPoint reads it, so a category of n clustered series holds bars of band / (n + 1.5) (chartBarGeometry): the preview draws that geometry, the PPTX export writes the same gap width and overlap, and a small chart's labels fit against the same bar slot. Before LH-176 the preview read the gap as a share of the whole cluster and drew two series' bars about a third thinner than PowerPoint.

    Category order and waterfall totals

    A bar chart (bar, stacked-bar, 100pct-stacked-bar) lists its categories top to bottom in data order, the first series at the top of each cluster. The PPTX export writes PowerPoint's reversed category axis (c:catAx c:orientation val="maxMin") with the value axis crossing at the last category (c:valAx c:crosses val="max"), so the value labels stay at the bottom and PowerPoint draws what the preview draws. Column, line and area charts keep their order (reversed only for right-to-left slides).

    A waterfall's bars float from the running total. OPF has no total marker, so core's waterfallSteps(values) infers one: the last value is a total when at least two values precede it and it equals their sum (to twelve significant digits), as in Start 100, +24, -8, End 116. A total bar stands on zero and does not add to the running total; its color and label follow the waterfall roles (LH-107, Chart marks), or with colors the third palette color (increases the first, decreases the second); the native PPTX waterfall (chartex: 'native') writes it as cx:subtotals, which PowerPoint draws the same way. Any other last value is one more step; intermediate subtotals are not inferred.

    Chart layer: small charts and the header row

    Status: LH-03 and LH-81 (layout harvest). Two defaults make a plain chart read like a designed one. Composition decides them once per chart item, from the chart, its resolved data and its box, and puts them on the composed item as chart.layer (core chartLayer, on @openpresentation/opf/composition); the preview and the PPTX export both draw that decision.

    Small charts (LH-03). A clustered column, bar or line chart (column, bar, line, line-with-markers) of one or two series, each of at most sixteen points (SMALL_CHART_MAX_SERIES, SMALL_CHART_MAX_POINTS), whose value labels fit beside each other at the chart text size (a column or line label no wider than the room between neighboring marks, a bar label no taller than its bar's slot). The fit decides, not a count (LH-111; the limit was eight points): twelve monthly columns are labeled when their labels fit, and a focus's context marks then take the light labeled gray (below). Such a chart:

    • labels every mark with its value, at the type's default position (outside the end of a column or bar, above a line point), in the column's number format;
    • draws no value axis: no tick labels, no gridlines and no value axis line (the category axis line stays at zero). The PPTX value axis is deleted (c:delete val="1") and has no c:majorGridlines; the composed axis still sets the scale. Nothing reads a length from zero, so a line's scale drops zero once its minimum is at least 0.75 of its maximum (LH-119, CHART_LABELED_ZERO_SHARE; every other chart keeps PowerPoint's rule, zero dropped only when every value is in the top sixth of the range); a column chart whose values are all zero or more ends its axis at its tallest column (0.35.2), so that column reaches the top of the plot under its label row rather than leaving LH-59's round end as an empty band under the chart's heading;
    • draws no chart panel: the chart stands on the card or the slide background, and its colors and labels are judged against that backdrop (LH-105 made this every chart's default);
    • on a one-series column or bar chart whose categories run in time (LH-105, see Defaults follow Few) and whose slide title names none of them, draws the last point that has a value in a stronger shade of the series color and every other point in the series color (LH-95, core chartEmphasisColors). The shade is the series color mixed away from the backdrop, towards black on a light backdrop and towards white on a dark one, just far enough to stand 15 L* (CIE) from it (CHART_EMPHASIS_MIN_LIGHTNESS_STEP), so the emphasis shows; moving away from the backdrop only raises the contrast, so every bar keeps 3:1 against the backdrop (CHART_EMPHASIS_MIN_CONTRAST; a bar is a graphical object under WCAG 1.4.11). A series color too close to black or white for that step is shaded the other way, still at 3:1. This emphasizes the last bar in all 84 gallery theme x color scheme x light and dark combinations (a faded tint of the other bars, LH-03's first rule, found room in 36). The PPTX export writes the series in its color and the emphasized point as one c:dPt.

    Header row (LH-81). A column, bar, line, area or combo chart of any grouping draws a row above the plot. Its caption, bold at the chart text size in the text color, sits at the start of the row (the right edge right to left). A caption is generated only when it adds to the legend: one series gives <series> by <category> ("Count by stage"), the series part being the value axis title or the series name; two or more series give a caption only from a value axis title ("Revenue ($M) by quarter"), since the legend already names them. The category part is the category axis title or the category column's name in sentence case: a plain capitalized word is lower-cased, and an acronym or proper-looking token (all capitals, an internal capital or a digit: "Q1", "ARR", "FY27") stays as written. Outside English decks the caption is the series part alone. Two to four series show their legend in the same row (at its end) or, when caption and legend do not fit together, at the start of a second row. LH-143: a legend wider than the row wraps its entries onto a second row (CHART_HEADER_LEGEND_ROWS) instead of moving to the side, so the decision does not depend on the font an engine measures it in (the preview's font measured a legend too wide for the row while the PPTX export's narrower font fitted it, so the same chart had two plot widths); only an entry wider than the row, or a legend of more than two rows, keeps the side legend. The plot then takes the chart's whole width, and PowerPoint lays the entries out in the legend's box (one row when its font fits them). In PowerPoint the caption is the chart title, and title, legend (legendPos t) and plot area (layoutTarget outer) carry the positions core computed as c:manualLayout.

    Ring names (LH-92). A doughnut of two or more rings (LH-60's nested rings: a pie or doughnut of several series) colors its slices by category, and its legend names the categories, so each ring names its series inside the ring, on its largest slice (chart.layer.rings, core chartRingLabels). The name is that slice's label: alone, or before the slice's own label with the labels' separator ("FY24, 40%"), in the color that contrasts with the slice. The PPTX export writes it as the slice's c:dLbl with c:showSerName val="1", which PowerPoint draws in the ring, first among the label's parts; import reads the other slices for the chart's own labels. A pie drawn as rings labels inside its rings as a doughnut does (no c:dLblPos).

    An explicit option wins. dataLabels: false keeps a small chart's value axis and draws no labels; an explicit dataLabels is drawn as written (a label without the value, or a value axis title, keeps the value axis); highlight and colors keep their colors (no emphasis); a legend option keeps that legend and draws no header row; a payload caption replaces the header caption (the legend still moves into the header).

    Import. fromPptx does not write these defaults back: value labels on a chart the small-chart rule covers (by type and counts) and a header legend (legendPos t with a manual layout) import as no option, so an exported deck imports with the options it was authored with. LH-105: every chart area is unfilled now, so a small chart is recognized by its deleted value axis; a small chart whose value axis has a title (its axis is kept) imports its default labels as dataLabels: true, which draws the same chart.

    Native chart-series name edits import from the current native cached reference or direct text value. Numeric point selectors keep their series index; a name selector that no longer exists reports a finding and keeps the actual overlay position. The native header legend uses a manual box sized for the exported names. A longer rename in PowerPoint can omit another legend entry while its data and bars remain intact. Import the edited file, review its findings and export the current OPF again to recompose the header at the retained text size. Longer names can require this reflow; native editing keeps the authored box size.

    Defaults follow Few

    Status: LH-105 (layout harvest). The defaults follow Stephen Few (Show Me the Numbers; Information Dashboard Design): every pixel of ink shows data, color is for what matters, labels sit at the data. Composition decides them with the rest of the chart layer (chart.layer), and the preview and the PPTX export draw the same. Every explicit option still wins, and fromPptx does not write a default back as an option.

    DefaultRuleWhy (Few)
    No panelNo chart draws a panel (the gray card surface it had): it stands on its card or the slide background, and its series, labels and text are judged against that backdrop (chartPaletteForFill, textColorForFill). The PPTX chart and plot areas are a:noFill, and so is a chartex chart area.Non-data ink: a panel frames nothing the reader needs.
    Soft series colorsA series from the scheme takes its accent softened: core softenChartPalette (on chartPaletteForFill(..., { soften: true })) moves its HSL lightness CHART_SERIES_SOFT_MIX (25%) of the way towards the backdrop's and lowers its saturation by the same share (satMod 75%, lumMod 75%, lumOff 25% on white), or by less, in 1% steps, where the full move would take it under 3:1 against the backdrop (4.5:1 for a scheme series on a dark backdrop, LH-55) or closer to a neighboring series than the palette had them, capped at 11 L* (20 between series 1 and 2 on a dark backdrop). An authored colors entry is drawn as written. The PPTX export writes a softened accent as the theme color with those transforms (<a:schemeClr val="accent1"><a:satMod/><a:lumMod/><a:lumOff/></a:schemeClr>, chartSoftColors), so re-theming in PowerPoint keeps it soft.Soft colors for ordinary data; strong color is kept for emphasis.
    Emphasis from the titleThe slide title and subtitle are matched against the chart's series names, category names and (one series) values (core chartTitleFocus, chart.layer.focus): words of any script compared with Intl.Collator at base sensitivity in the deck language, a possessive dropped and a plural matching its singular; a name of several words also matches by the words it does not share with every other name ("Enterprise NPS" beside "Mid-market NPS" by "Enterprise"); a unit in parentheses is not part of a name; a month name matches the category of that month (November and Nov, in English and the deck language); a number in the title matches the categories with that value at the precision written (1,790; 31; 20% for a percent column). The focus is a proper subset: on a chart of several series the series named, else the categories named, else (every series named) the one named first; on one series or a pie, the categories named or whose values are printed. The focused marks keep their full-strength color and the other marks take the context neutrals (core chartContextColors): grays in the backdrop's hue, the backdrop mixed towards the text color, one per context series (or slice, or stacked segment) in the order they come, the first the strongest and each next one 11 L* lighter, so neighboring context series stay apart; each keeps a color difference of 20 (CIE76) from the focused colors, which a gray beside a colored focus has by its chroma. The context reaches 3:1 against the backdrop where it is read against an axis, and only 1.6:1 (CHART_CONTEXT_LABELED_MIN_CONTRAST, a light gray) where every context mark carries its text: a small chart's value labels, the names at the line ends, the names on the slices (WCAG 1.4.11 does not ask 3:1 of a graphic whose information the text gives; chart.layer.focus.labeled). That light floor is for filled marks (columns, bars, areas, slices): a context mark drawn as a stroke (every line series, a combo's line) keeps 3:1 even when labeled, because the line is the data and a thin line at 1.6:1 all but disappears (core chartSeriesStrokes and chartFocusContextColors, which the preview and the PPTX export both read). The PPTX export writes a gray that equals a neutral as that scheme color (tx1 with lumMod/lumOff). Column, bar, line, area, pie and one-series doughnut charts; not combo charts or the chartex constructs.Color only for what the message is about; the rest is context, light where it is labeled.
    Emphasis from the slide (LH-113)When the title names nothing, the focus comes from the slide's other texts: every text block, list entry, quote and chart alt (core slideFocusSources, chartSlideFocus). Each is matched as the title is, with conservative rules: stop words never name a key; a proper name of several capitalized words matches by its first word ("Corvid" for "Corvid Plastics"); a printed quantity (3.1%, $71M) is a value, not a name; a range ("from March to August", "range from 71 in APAC to 78 in the Americas") names nothing; coordinated keys ("Engineering and support") are named together, and otherwise the key a sentence names first is its subject; a paragraph over 140 characters that names more than one key and a list that names keys in two or more entries name nothing; and the focus is what every naming source agrees on. The same focus highlights a table's rows (table.highlight, content payloads) on the same slide.The message is often in the sentence beside the chart, or in the chart's own alt, not the title.
    Emphasis only over timeWithout a title focus, a small one-series column or bar chart emphasizes its last point (LH-03, LH-95) only when its categories run forward in time (core chartCategoriesInTime, below). Its emphasized point takes the series color at full strength (or a stronger shade of it, 15 L* from the soft color); the others keep the soft color.The last point is the latest one only in time; on nominal categories it is just the last one written.
    Line ends instead of a legendA line chart (line, line-with-markers, stacked lines) of two to four series without legend or dataLabels, every series having a value in the last row, names each series at its last point: its last value as its data labels print it, then its name ("61 Enterprise NPS"), in the series color made legible as text (chartSeriesLabelColor, 4.5:1), bold for a series the title names (chart.layer.endLabels). The plot leaves a gutter for the names at its end (chart.layer.plot; the left right to left). Names closer than a text line move apart, never more than a line from their point; when they cannot (or when the gutter would turn the category labels the legend layout keeps level), the chart keeps its header legend. A small two-series line chart gives its value labels and hidden value axis up for the end labels. The header row keeps only its caption. PPTX: the last point's c:dLbl with the text as written (c:tx c:rich, value first, which PowerPoint's own field order would reverse), c:showSerName, c:dLblPos r (l right to left) and a manual layout offset where the name moved; no c:legend; the plot area's inner manual layout. Area charts keep their legend: PowerPoint has no label position for an area point.Direct labels: the eye does not travel between a key and the data.
    Names on the slicesA pie or one-series doughnut without legend or dataLabels names each slice with a value (chart.layer.slices): inside the slice when the name's text fits there at the slice's inside end (a doughnut: in its ring), in the color that contrasts with the slice; else, on a pie, outside its end. The outside names shrink the pie as outside labels do. A doughnut name that does not fit its ring, outside names that would touch each other or leave the chart box, or a pie shrunk under 30% of its room (CHART_SLICE_LABEL_MIN_RADIUS) keep the side legend. PPTX: one c:dLbl per slice with c:showCatName, c:dLblPos inEnd or outEnd (none on a doughnut), c:showLeaderLines; no c:legend. A doughnut of several series (nested rings) keeps its legend.Labels at the data, not in a key.
    Fewer intervalsThe value axis has at most CHART_MAX_INTERVALS (6) intervals of 1, 2 or 5 times a power of ten (it was 8, and maxIntervalsFor capped at 10); an axis with room for three intervals is not tightened to one. Gridlines stay light (gridline, tx1 at 15%), horizontal on column, line and area charts and vertical on bar charts; no tick marks on either axis (c:majorTickMark none).A few well-rounded ticks; gridlines only as faint as they must be.

    Time order (chartCategoriesInTime(labels, { title, language })). Categories run in time when every label is one family of time point running forward: years (2024, FY24, FY 2025, '24; a span FY24/25), periods (Q1 to Q4, H1 and H2, M1 to M12, and outside English T1 to T4 and S1 and S2, with an optional year: Q1 2024, 2024 Q1, Q1'24, FY24 Q3, 1Q24), weeks and steps (W12, Week 3, Day 4, Sprint 5, and the deck language's words for year, quarter, month, week and day from Intl.DisplayNames), months (January, Jan, Sept, with an optional year, in English and the deck language's Intl.DateTimeFormat names), dates (2024-03, 2024-03-15, 15.03.2024) and numbers (a strictly increasing sequence). Years and numbers must increase; months, periods and weeks without a year may wrap once (Nov, Dec, Jan); digits of any script count. A reversed run (2026, 2025, 2024) is not in time. Only when the labels are not one family, a category title (the category axis title, else the category column's name) that names a time field (Year, Quarter, Month, Week, Day, Date, Period, Time, Fiscal year, or the deck language's word) makes distinct labels time ordered. P1, P2 (priorities) and an English T1 (a tier) are not periods.

    Validator. Two info findings (content) say where Few's advice is not followed; they never change the drawing: opf/chart-dual-axis for a combo chart with a secondaryAxis (two charts read more truly than one with two scales) and opf/chart-pie-many-slices for a pie or doughnut of more than five categories (compare them with bars). See validate.md.

    Not in this change. Bars are not sorted by value (the author's order is kept), chart types are not changed, and rotated category labels keep LH-93's rule. The waterfall roles, the value list beside a pie, the values inside stacked segments and the reference marks followed in LH-107 to LH-110 (Chart marks).

    Chart marks: waterfall roles, value lists, stacked labels, reference marks

    Status: LH-107 to LH-110 (layout harvest, from the Claude Design chart comparison: chart corpus s09, s13, s14, s16, s17, s18, s19, s24). Composition decides them with the rest of the chart layer (core chart-marks.ts, on chart.layer); the preview draws them and the PPTX export writes them. As with Defaults follow Few, an explicit option wins (dataLabels and legend keep the chart as authored, colors keeps a waterfall's palette positions) and fromPptx does not write a default back as an option.

    MarkRulePowerPoint
    Waterfall roles (LH-107, layer.waterfall)Each bar has a role (core waterfallRoles): the inferred total (above) and, when there is one, the first bar it runs from ("2024 profit") are totals; the rest are increases or decreases by sign. Totals take the strong color, the scheme's dark2 when it keeps 3:1 against the backdrop and a color difference of 20 (CIE76) from the accent, else the text color (a dark slide); increases take the series color at full strength; decreases the first context neutral (core chartWaterfallColors), the light gray when the bars are labeled. Without dataLabels, every bar carries its value: a step signed (+9.3, −7.4 with U+2212), a total unsigned and bold (waterfallLabelText), over the bar (a decrease: under it); when the widest label does not fit its category band, there are no labels and the value axis stays. With the labels, the value axis and its gridlines go (unless it has a title), and the column's name (or the value axis title) becomes the caption above the plot ("Operating profit ($M)"). Connectors between steps are dashed (LH-125: 1 pt, 4 on and 3 off, in the axis line color).The native waterfall (cx:, the default chartex: 'auto') carries it all: each bar's cx:dataPt in its role color, cx:dataLabels pos="outEnd" with the signed number format "+"F;"−"F;F (F: the column's format, else General; waterfallSignedFormat) and a cx:dataLabel per total in F, bold; the value axis hidden="1" without gridlines; the caption as cx:title (align="min", bold). PowerPoint draws its connector lines (cx:visibility connectorLines="1") with the series' line (native check 2026-11-03: its width, dash and color; the chart style part's line entries change nothing), so the series' cx:spPr carries a:ln w="12700" with a:prstDash val="dash" in the axis line color and each bar's cx:dataPt an a:ln with a:noFill (the bars have no outline). The clustered-column fallback (mc:Fallback) is unchanged.
    Value list (LH-108, layer.valueList)A pie or one-series doughnut without legend or dataLabels, of two to eight categories with a value (CHART_VALUE_LIST_MAX_ROWS), lists them beside it instead of naming its slices (core chartValueList): the values' unit (the value column's name or the value axis title) over the value column, then one row per category, a swatch in the slice's color, the category and its value right-aligned in the column's format, a hairline between rows; the rows the title names (the LH-105 focus) bold in the text color, the others in the chart text color. The list takes 45% of the chart box or what its text needs, two text sizes after the pie (before it right to left); when the box is wider than the pie and its list need (the pie bound by the box's height), the pie and the list stand together as one group centered in the box (0.35.2); rows are up to 2.4 lines apart and at least 1.25, centered on the box. When: the list is drawn only when the pie keeps the radius it has alone (90% of half the box's shorter side) beside it, or 80% of it when a slice is under 10% of the total (CHART_VALUE_LIST_SMALL_SLICE) or the slice names would not all sit inside their slices: then names leave the pie anyway. So a pie in a wide box (the whole body) lists, and a pie in a half-width column keeps its slice names (or its legend).The pie is drawn in core's square (the plot area's inner manual layout), with no legend and no labels. The list is native shapes over the chart frame, each tagged OPF_CHART_MARK_V1 (src/chart-marks.js): text boxes for the unit, names and values, rectangles for the swatches and lines for the rules. They are drawn for the plot core pinned and do not follow the chart if it is moved by hand.
    Stacked values and names (LH-109, layer.stack)A stacked column or area chart (and its 100% form) of two to six series without dataLabels or legend draws each segment's value inside it (in the color that contrasts with the segment) when its text and a quarter text size fit the column's width (90% of the category band on an area) and a text line fits the segment's height (core chartStack, stack.values). An area's first and last points carry no value (a centered label would hang outside the band), and a 100% chart none (the axis reads shares; the raw values would contradict it). The series are named beside the last column (the end of the last band, a text size and a half clear of an edge-to-edge area's end value): a swatch and the name, centered on the segment's middle, moved apart only to keep a text line between names and never more than a line from their segment (placeStackNames); the bold name is the series the title names. The header row keeps its caption only, and the plot leaves a gutter for the names. When the names cannot be placed so, the chart keeps its header legend. The plot is pinned either way (layer.plot).The values are the chart's own data labels (c:dLbls with c:showVal, c:dLblPos ctr on columns; an area point has no label position, so PowerPoint places it itself: not yet checked natively), each series' text in the color that contrasts with it, and one c:dLbl with c:delete per segment whose value does not fit. The names are tagged native shapes over the frame (a swatch and a text box each); the plot area keeps core's inner layout and there is no c:legend. Import reads values-only center labels on a stacked chart as the default (no dataLabels).
    Explicit reference lines (LH-110, chart.referenceLines → layer.references)Optional ordered value-axis annotations on column, bar, line, line-with-markers, area and combo charts. Author a finite numeric value, optional verbatim label, axis and independent color/width/dash stroke. Absence or an empty array draws none. Titles and subtitles never create a threshold or a period band. Every target expands automatic bounds only on its associated axis.Vertical charts with at least two categories use native constant helper line series and optional native endpoint labels, spanning first-to-last category centers. Horizontal bars and singleton-category charts use fixed ordinary line/text overlays. See the explicit contract and editing limits below.

    Explicit reference lines

    The authoritative schema supports chart.referenceLines; the composition, SVG renderer and PPTX exporter/importer implement the contract below. This replaces the earlier title-derived thresholds and period bands. No bands API is introduced. The complete example covers the native/fallback split; localized labels are authored text, independent of title parsing.

    json
    {
      "type": "line",
      "data": {"columns": ["Month", "Availability"], "rows": [["Jan", 92], ["Feb", 96], ["Mar", 97]]},
      "referenceLines": [
        {"value": 95, "label": "Target 95", "stroke": {"color": "accent2", "width": 2, "dash": "dash"}}
      ]
    }

    The main data line retains its existing solid default. A reference stroke is independent of every data series.

    A singleton combo example places Revenue180 on the primary value axis and Margin0.25 (25% under 0%) on the actual secondary value axis. Both references expand their own bounds. With one category, both are full-plot line/text overlays; they remain fixed after independent PowerPoint chart/data/axis edits. The exporter records each overlay's explicit current category/value axis IDs, and import requires the same unique reciprocal native pair and unchanged geometry/style/text binding. Reordering axis declarations alone is harmless; swapped, duplicate or missing associations preserve ordinary shapes with a diagnostic. Older multi-axis overlay receipts without explicit pairs also remain ordinary shapes; re-export their OPF source to create current receipts.

    PropertyMeaning and default
    referenceLinesOptional array. Absent/[] means none. Authored order, duplicates and values equal to data are retained; no two-line cap or inferred-range cutoff. Nonempty arrays are supported only by column, bar, line, line-with-markers, area and combo, the types with one value axis for every series. On any other type, the stacked and 100% stacked types among them, a nonempty array is the located error opf/chart-reference-unsupported-type at referenceLines: a reference is never dropped silently. In the editor, a chart-type switch to such a type refuses (chart-reference-lines-unsupported) unless the caller passes removeReferenceLines: true, which removes them in the same step and reports them.
    valueRequired finite number in the associated value axis's data units. With a 0% column format, 0.25 means 25%, and 25 means 2500%. Strings are invalid; neither labels nor titles select units, and there is no 0–1 clamp.
    axis"value" by default. "secondary" requires an actual combo secondary value axis. Category/X references are outside this scope. Invalid associations produce located validation errors.
    labelOptional nonblank plain text, shown verbatim. No label or numeric text is synthesized.
    labelPosition"end" by default, or "start". Requires a label. Horizontal endpoints mirror in RTL; vertical bar-reference endpoints mean top/bottom.
    strokeA ReferenceLineStroke: { color, width, dash } with every part optional, or "none" to draw only the label.
    stroke.colorExisting ColorRef: hex, theme role/slot, variable or color transform. Default is the effective chart-text neutral.
    stroke.width0–64 reference pixels at a 720px short edge; default 4/3 (one point before slide scaling). Zero (the same as "none") hides only the stroke; its value still expands bounds and its label remains. PowerPoint draws a line of width 0 as a hairline, so the export writes it fully transparent.
    stroke.dashAny preset dash a shape outline takes (solid, dot, dash, longDash, dashDot, longDashDot, longDashDotDot, sysDot, sysDash, sysDashDot, sysDashDotDot; OPF 0.37 added the last eight to solid, dash and dot); default "dash". The PowerPoint export writes the matching a:prstDash. The narrow stroke deliberately excludes custom dash arrays, gradients, arrows, compound and sketch effects.

    Every reference participates in its own axis's automatic nice bounds, zero anchoring and sibling-axis sharing. Combo primary and secondary bounds come from shared composition. Labels use chart typography and their logical endpoint, with clearance for half the reference stroke width. In authored order, placement checks ordinary data-line/marker ink, the bars of a column, bar or combo chart, the filled area of an area chart and preceding reference labels, trying the preferred adjacent side, then the opposite side, then the same two places at the other end of the line (RR-105: a label is never drawn on a mark while a free place exists at either end; the import still returns the authored labelPosition). If none fits, the preferred position and all text remain with an overflow/collision diagnostic, and a label that sits on a bar or an area stands on a plate of the chart's surface color (a filled data label in PowerPoint) so it reads against the mark. Labels never shrink, disappear or move their numeric reference line to make room. A reference never changes which marks a chart emphasizes: the focus the slide's texts name is drawn exactly as on the same chart without references, and highlight (an empty one included, which switches derived emphasis off) still decides it. So that a title still cannot move the plot, a chart with references keeps its series names at regular weight: a bold focused name is wider and would change the direct-label gutter. Fixed chart/data/frame title or subtitle edits leave references, bounds, plot, spans and label coordinates unchanged. General slide reflow can change the chart frame.

    PowerPoint editing limits. The five vertical types with two or more categories export each reference as an owned constant native line series, markerless and excluded from ordinary legends/default data labels, with independent color/width/dash and an optional native endpoint custom-text label. Each helper series is named after its reference's label ("Reference" when it has none, " 2", " 3" added to keep names unique against the data series, the category heading and other helpers), in its name cache and as the workbook column heading Edit Data shows; a reader that lists helpers in the legend, such as Keynote, which also draws no reference labels, shows that name. SVG and PPTX both span the first-to-last category centers. Native references follow chart transforms and value axes. Existing exports pin bounds, so changing data does not promise automatic rescaling. Helpers contain repeated values over the exported workbook range: adding categories requires extending the range, and editing just one target cell can make a helper nonconstant. Horizontal bars and single-category charts instead use full-plot editable ordinary line/text overlays. These overlays stay fixed after chart movement, resizing, axis, legend or data edits in PowerPoint; re-export OPF to recompute them.

    Import ownership. An unchanged export imports each reference's stroke as the document wrote it: an absent stroke stays absent, a partial one stays partial, "none" stays "none" and a scheme color keeps its name; axis and, with a label, labelPosition come back written out ("value", "end" when the document left them out). A line restyled in PowerPoint imports its current paint. Verified versioned helper ownership is classified before native chart groups. Constant helpers restore their current values, supported styles and labels once, excluded from ordinary data. Names never establish ownership. Nonconstant, ambiguous or stripped helper ownership retains all ordinary series and cached values with diagnostics. Same-axis ordinary line groups coalesce into one line chart; mixed marker choices produce a diagnostic. Separate-axis all-line groups require an OPF combo: the first current series becomes primary-axis columns, with a named representation/axis diagnostic and every numeric series/order retained. If an uncertain mixed area/line chart cannot be expressed by the current OPF combo model, import retains all data/order as a combo and explicitly diagnoses the area-to-column representation change; axis or duplicate-name ambiguity is also diagnosed. If per-series category caches disagree, the single OPF category axis uses the first series labels with a diagnostic; all numeric series remain. This is data preservation, not visual parity. For fallback overlays, the exact authored value is restored only after versioned, hash-bound current line/label geometry and style plus chart plot/axis/frame binding prove the overlay unchanged; metadata removal or any relevant edit keeps visible shapes with a diagnostic and no stale reference. Verified unchanged overlays restore/consume once; edited or uncertain overlays remain visible ordinary shapes without a stale duplicate reference. Legacy V1 inferred line, label and band shapes remain visible ordinary shapes with diagnostics.

    Stacked bars, edge-to-edge areas and the doughnut hole (LH-125). The marks above gain three follow-ups from the same comparison (chart corpus s10, s16, s19):

    • Horizontal stacked bars (stacked-bar, 100pct-stacked-bar; two to six series without dataLabels or legend) draw each segment's value inside it when its text and a quarter text size fit the segment's length and a text line fits the bar's thickness (a band over 1.5; not on a 100% chart) and name their series in a row above the plot: each name (a swatch and the name) starts where its series' segment starts in the first bar, left to right (placeBarNames; stack.names.above). When two names would meet (a hairline segment) or the last would leave the chart, the header legend stays. Core lays the plot out as the preview lays out a horizontal bar chart (horizontalStackPlot: the category gutter, the value labels below, the names row between the header and the plot) and pins it (layer.plot); the preview draws it there and the PPTX export writes it as the plot area's inner layout, so the names stand over the segments in PowerPoint too. The value labels sit at the bottom in PowerPoint (c:valAx c:tickLblPos nextTo; PptxGenJS's default low put them at the top of a bar chart whose categories run down).A stacked bar chart whose bars align to a table's rows (LH-115, chart.layer.rows) uses the table's plot instead: the pinned plot and the names row go, the header keeps its legend and the values that fit the aligned segments are printed (restackForRows). A side legend (a legend of more than two rows, or an entry wider than the chart) takes its width off the pinned plot, as the preview lays it out. LH-142: labels or an axis, not both. When every segment with a value carries its value (and the chart is not 100% and has no value axis title), the value axis, its tick labels and its gridlines are dropped (stack.valueAxis === false, core chartValueAxisHidden, which a small chart's small.valueAxis answers too): the plot is laid out without the tick row, the preview draws no ticks, gridlines or axis line, and PPTX writes c:valAx with c:delete val="1" and no gridlines. One segment too narrow for its value keeps the axis; a chart aligned to a table's rows keeps it too.
    • A stacked area runs edge to edge (stack.edge, any stacked-area or 100pct-stacked-area of two or more categories): the category axis crosses on the tick marks (c:crossBetween val="midCat"), the first category on the plot's start and the last on its end, with the plot keeping half of the end category labels' width beyond its edges (chartPlotInset) and a fifth of a text size more under the labels, clear of the value axis's zero. The first and last points of each band hold their values inside the band, left-aligned at the start edge and right-aligned at the end edge (stack.ends, areaEnd; the first category is at the right edge right to left): a value fits when its text lies within half a category band and the band is a text line tall at both ends of the text. PPTX: the chart's own labels at those points are deleted and the values are tagged text boxes (stack-end) in the color that contrasts with the band.
    • A doughnut prints its focus value in its hole (valueList.hole, doughnutHole): when a doughnut with a value list has one slice the title names (the LH-105 focus), that slice's value stands in the hole in twice the chart text size, bold, in the slice's color made legible as text, with the slice's category under it at the chart text size when it fits (84% of the hole's width, both lines within 70% of its height); a value that does not fit at 1.25 text sizes leaves the hole empty. The hole is half the doughnut's radius in both engines. PPTX: tagged text boxes (hole-value, hole-name) centered in core's square.

    The doughnut hole (LH-182). A doughnut's hole takes the surface the chart stands on, so a deck watermark or a background motif behind the chart does not show through it (only through the hole: around the doughnut it still shows). Core composes the doughnut's square and hole (layer.doughnut, chartDoughnut): the value list's square when the doughnut has one (LH-108), else the preview's square (the box less its padding and the category legend at the end, 90% of half the shorter side); a doughnut with chart options (legend, axisTitles, dataLabels) has none and keeps an open hole in both engines. The preview draws the doughnut in that square with a surface-colored disk in the hole; the PPTX export pins the plot area to the square (c:manualLayout, layoutTarget inner) and lays an ellipse in the surface color under the chart frame at the hole (c:holeSize 50 is half the radius), tagged OPF_CHART_MARK_V1 (role hole), which import consumes.

    Thousands grouped by the deck language (LH-141). Where the author wrote no number format, a whole number of four integer digits or more prints with its thousands grouped by the deck (or slide) language's locale (groupNumber, OPF's locale table: "6,240" in English and for a deck without a language, "6.240" in German, "٦,٢٤٠" in Saudi Arabic; Spanish groups only from five digits). LH-106: every label, tick and percentage, grouped or not, is in the language's own digits and decimal separator, so 999 and 1,000 agree (see numbers in the language's own digits). This covers the default value labels (a small chart's, a stacked chart's segments, a pie's or a line's), the pie value list, the doughnut hole value, a line's end labels and a metric's numeric value (a string value is the author's text and is never rewritten; a metric has no format field). The rule is per series: a series groups when every value in it is a whole number and one has four digits (groupsThousands), so a series with a fraction keeps the General form ("6240.5"). In PowerPoint the series' own data labels take the number format #,##0 (GROUPED_LABEL_CODE; the cache and the value axis keep General, and PowerPoint draws the separators of the viewer's region), so its labels agree with the preview. A format the author wrote (a DataColumn format) is never regrouped. The value axis follows the same rule (groupsAxisTicks): an axis of a column, bar, line or area chart with no number format of its own (its first series' format) whose ticks are whole numbers reaching four digits groups its tick labels by the deck language, and PowerPoint's value axis takes #,##0 (sourceLinked="0"); an axis format the author wrote and a 100% (share) axis stay as they are. Not covered: the labels and axes of a waterfall, funnel, treemap, histogram, pareto, combo or scatter chart.

    Thousands grouping across chart constructs (LH-153). The same rule reaches labels and axes beyond the ordinary category charts. A waterfall's labels (the sign stays outside the grouped number: "+3,200", "−1,450"), a funnel's, a treemap's value labels and a histogram's or Pareto chart's bars group by the deck language when their column has no format and holds whole numbers reaching four digits; a histogram of a lone value column plots bin counts, which always group. Their value axes, a combo chart's two value axes and a scatter chart's Y axis (and a box and whisker chart's) group by a rule decided from the plotted values alone (groupsDataRange: whole numbers, one of four digits, spanning at least 100 from zero for a column or a waterfall and from the lowest value otherwise), so the preview and PowerPoint agree. Combo primary and secondary scales now come from shared composition; PowerPoint retains its own scale selection only for constructs without composed bounds. A scatter chart's X axis groups only over a span of 1000 or more, so a column of years ("1990" to "2020") never reads "1,990". In PowerPoint a classic part's value axis, and a chartex part's labels and axes (the signed waterfall format "+"#,##0;"−"#,##0;#,##0, a binned axis), take #,##0; a format the author wrote is never regrouped and a scatter chart's X cache keeps General.

    Axis titles of a horizontal stacked bar (LH-154). The pinned plot of a horizontal stacked bar chart (horizontalStackPlot) leaves the bands the preview carves for its axis titles: a value axis title takes one text line under the tick labels and a category axis title one text line before the row names, so neither overlaps them in either engine.

    Neighboring series (LH-94). Every series the scheme supplies stands at least 11 CIE L* from the series before it (CHART_SERIES_MIN_LIGHTNESS_STEP) in every default color scheme, on light and dark surfaces, strong and softened: a series closer than that is moved along the lightness axis (its hue and as much chroma as sRGB allows kept) to the nearest lightness that keeps its contrast floor (separateNeighbors), so opf/chart-color-only reports no lightness pair for a chart on a gallery scheme. An authored chart.colors entry is never moved. The last slice of a pie beside its first is LH-161's.

    A pie's last slice beside its first (LH-161). A pie or doughnut is a circle: its last slice touches its first, so the same step holds there. chartSlicePlan(fill, palette, count, { legible }) takes the colors a chart draws and, when the last of count slices (a scheme color, never an authored one) is closer than 11 CIE L* to the first, moves that one slice along the lightness axis (hue and as much chroma as sRGB allows kept) by at most CHART_SLICE_MAX_SHIFT (20 L*, so it still belongs to the palette) to the nearest lightness that keeps its contrast floor and the step from both its neighbors (a color difference under CHART_SERIES_MIN_DIFFERENCE from any other slice costs more the further it falls). Where no lightness within 20 L* clears both steps, the palette color stays and the chart is bordered (bordered: true): every slice of that chart gets a CHART_SLICE_SEPARATOR_PX (2 px at the 720-px reference) border in the surface color, which separates the wrap pair by shape. The preview reads the plan per chart (sliceColors, sliceBordered: the slice outline is the surface color at 2 px), the PPTX export writes the moved slice as an sRGB literal (never the scheme accent it came from) or each data point's line (c:dPt a:ln, 1.5 pt, in the surface color, the slide's bg1 where it is the background), and opf/chart-color-only judges the plan's colors and accepts a bordered wrap pair. Every other slice keeps the palette color, so a pie of any size differs from the series palette in at most its last slice. Over the 14 gallery schemes, 4 surfaces and 3 to 12 slices (560 pies) 268 have a wrap pair: 116 are recolored (largest move 16.4 L*, median 9.1) and 152 are bordered; the other 292 are unchanged. Fewer than three slices and more than the palette holds (the colors repeat) change nothing; a treemap or funnel has no circle and no wrap pair.

    Waterfall numeric axes (RR-105). Core shares the running-total minimum, maximum and major interval with native PPTX, including a hidden value axis. The plan respects null gaps, negative steps, terminal totals, label space and axis titles. PowerPoint still chooses the inner plot margins of its Office 2016 ChartEx constructs automatically; exact inner-plot placement is not pinned as it is for classic charts. A shared numeric scale does not establish identical plot bounds.

    Histogram bins and labels (LH-160). Core decides a histogram's or Pareto chart's bins from the chart box (layer.histogram, chartHistogram), and both engines read it. PowerPoint's chartex category axis has no label interval and wraps a long bin label onto two overlapping lines, so "label every nth bin" is not available to the native chart; what both engines can do alike is draw bins that can be labeled. Bins: Scott's count (Office's automatic bins) is capped at the number of bins the plot can label one beside another, each taking HISTOGRAM_LABEL_SLOT (1.8) chart text sizes of plot width and never fewer than HISTOGRAM_MIN_BINS (5); a chart with room keeps Scott's count, and the count is written as cx:binCount. Edge labels: the edges are rounded to the decimals the bin width needs (histogramEdgeDecimals: the fewest decimals that keep every rounded edge within a tenth of a bin of the true one, so edges that already are whole numbers stay whole: "(8333, 11250]" for a bin 2900 wide, "(7.4, 11.1]" for one 3.7 wide), written as the category axis number format (cx:numFmt, 0 or 0.0...; PowerPoint applies it to its bin labels, native check 2026-11-05), which keeps each label on one line. An edge is rounded as PowerPoint rounds it under that format (histogramEdgeText, RR-105): its decimal value to 15 significant digits, half away from zero, so 1.2 + 1.85 reads 3.1 in both engines (toFixed would read the binary 3.0499999999999998 as 3.0). Value axis (RR-105): the value axis of a histogram and a Pareto chart is core's too (layer.histogram.valueAxis, niceScale over the bars, zero-based, with as many intervals as the estimated plot height holds), and so is a Pareto chart's percentage step (layer.histogram.percentUnit); the preview draws them and the native chartex part writes them as cx:valScaling min, max and majorUnit (the percentage axis 0 to 1 with that step), because PowerPoint's automatic chartex axis follows its own rule. Value labels: per-bar data labels the author asked for are dropped (layer.histogram.valueLabels === false, neither engine draws them, the classic fallback included) when the widest label with half a text size of air is wider than its bar's slot, the rule of the small chart's labels (LH-111): about a dozen bars of a half-width chart, more on a wide one. A chart over a category column keeps its rows (only the value labels follow the fit rule) and its category labels stay PowerPoint's and the preview's own.

    Negative categorical histograms (RR-105). A histogram with category/value columns can contain signed values in OPF. PowerPoint's native histogram category aggregation omits negative categories even when its cache contains them. PPTX export therefore uses an editable native clustered column chart for this data in every chartex mode, including native, and reports chartex-fallback. Every category, value and series is retained; automatic axis bounds can include the negatives. This fallback imports as a column chart with its data, so it does not restore the authored histogram type. Nonnegative category data still uses native aggregation in auto/native; a single numeric column containing negative raw observations still uses native histogram binning. The fallback does not imply that every Office version or other ChartEx construct has been qualified.

    Import. fromPptx consumes the tagged OPF_CHART_MARK_V1 shapes (they are the chart's defaults, not content) and reads the chart they belong to as having no legend option; a waterfall's signed labels (a "+" number format) and a stacked chart's center value labels import as no dataLabels; a native waterfall without labels imports as dataLabels: false (labels too wide to fit draw the same).

    What each chart type supports (axis titles, legend, data labels)

    chartOptionSupport(target) in @openpresentation/opf/composition returns this table; the validator, the preview, the exporter and the importer all follow it. An option a type cannot show is adapted (dropped, or reset to the default) and reported as a chart-option-adapted diagnostic by the validator (a warning), the renderer and the exporter (onDiagnostic). It is never silently lost and never fails the render.

    Type (catalog ids)Axis titlesLegendData label contentData label positions (default)
    clustered column, bar (column, bar)category, valueyescategory, valuecenter, inside-end, inside-base, outside-end (outside-end)
    stacked and 100% stacked column, barcategory, valueyescategory, valuecenter, inside-end, inside-base (center)
    line, stacked line, with markerscategory, valueyescategory, valueabove, below, left, right, center (above)
    area, stacked area, 100% stacked areacategory, valueyescategory, valuenone: the label sits in the area at each category
    scattercategory (X), value (Y)yescategory (X value), value (Y)above, below, left, right, center (above)
    pienoneyescategory, value, percentcenter, inside-end, outside-end (outside-end)
    doughnutnoneyescategory, value, percentnone: labels sit in the ring
    radar, with markers, fillednoneyescategory, valuenone
    histogram, paretocategory, valuenonecategory, valuecenter, inside-end, inside-base, outside-end (outside-end)
    waterfallcategory, valuenonecategory, valuecenter, inside-end, inside-base, outside-end (outside-end)
    funnelcategorynonecategory, valuenone (center)
    treemapnonenonecategory, valuenone (center)
    box and whiskercategory, valueyesnonenone
    combo (combo)category, value, secondaryyescategory, valuecolumns: center, inside-end, inside-base, outside-end (outside-end); lines: above, below, left, right, center (above)
    world (region map)nonenonenonenone

    A chart type outside the catalog is never adapted.

    Combo charts

    Status: FA-15 (format audit). A combo chart draws clustered columns and line series in one plot, for an amount beside a rate such as revenue and margin %:

    json
    {
      "chart": {
        "type": "combo",
        "data": {
          "columns": ["Quarter", { "name": "Revenue", "format": "$#,##0.0" }, { "name": "Margin", "format": "0%" }],
          "rows": [["Q1", 12.4, 0.31], ["Q2", 18.1, 0.34], ["Q3", 21.7, 0.29], ["Q4", 26.3, 0.37]]
        },
        "lineSeries": ["Margin"],
        "secondaryAxis": ["Margin"],
        "axisTitles": { "category": "Quarter", "value": "Revenue ($M)", "secondary": "Margin" }
      }
    }
    FieldValuesAbsent means
    lineSeriesplotted series names, at least onethe last plotted series is the line
    secondaryAxisline series namesevery series uses the primary (left) value axis
    axisTitles.secondarystringno secondary axis title
    • The plan. Every plotted series (the mapping.series or the positional rule) is drawn as clustered columns, except the ones lineSeries names, which are lines with markers. At least one series stays columns, so a line that names every series draws the first as columns. A one-series combo chart is drawn as columns. Core's resolveChartData returns the plan as combo ({ role: "bar" | "line", axis: "primary" | "secondary" } per series) and orders the series columns first, then the primary-axis lines, then the secondary-axis lines, so the preview, the PPTX series order and the legend agree.
    • The secondary axis. secondaryAxis puts line series on a value axis at the right (at the left right to left). It has its own automatic scale and its tick labels use the number format of its first series' column (DataColumn.format, for example 0%); the primary axis uses the first column series' format. Gridlines follow the primary axis. axisTitles.secondary titles it, rotated like the primary value title.
    • Labels. One dataLabels applies to both parts: column labels sit outside the end and line labels above the points by default; center applies to both; a position only one part takes (inside-end, inside-base, outside-end for columns; above, below, left, right for lines) applies to that part and the other keeps its default, with a chart-option-adapted note. resolveChartOptions returns the column position as dataLabels.position and the line position as dataLabels.linePosition.
    • Legend. As for other multi-series charts (right by default, or legend); a column series has a square key and a line series a line with a marker.
    • Validation. A lineSeries or secondaryAxis name that is not a column of the data is a chart-mapping-unknown-column error. A name that is not plotted, a secondaryAxis name that is not a line, a line that names every series and a one-series combo chart are chart-mapping-adapted warnings. line, secondaryAxis and axisTitles.secondary on any other chart type, and axisTitles.secondary on a combo chart without secondaryAxis, are chart-option-adapted warnings.
    • PPTX. One c:plotArea holds a clustered column c:barChart (primary axes) and a c:lineChart with markers. Secondary-axis lines form a second c:lineChart on a second c:valAx (axPos r, crosses max) and a deleted second c:catAx; the embedded workbook holds every series. Import reads such a plot area (one clustered column group, one or two line groups) back as combo with line (when it is not the default), secondaryAxis, the secondary title and the label position.
    • Editor. The chart type picker offers combo for data with two or more series, the chart options panel sets which series are lines and which lines use the secondary axis, and switching to another type removes the three fields.

    How the engines draw and write them

    The preview (opf-render) and the PPTX export (opf-pptx) both read resolveChartOptions(chart, chartOptionTarget(chart.type)), so they agree on which options apply and with which content and position. The highlight adds resolveChartOptions(...).highlight (the names that survive the type's support table), chartHighlightMarks(highlight, resolvedData) (which series and which rows are named) and chartHighlightColors (the two colors).

    • Preview. A legend, and the axis titles, are carved from the chart box before the plot is laid out: the legend at its edge, then the titles next to the axes. Only a chart that uses a field changes; a chart without them draws the same SVG as before. A vertical axis title is rotated 270 degrees, as PowerPoint draws it.
    • PPTX, classic charts (column, bar, line, area, pie, doughnut, scatter, radar): c:catAx/c:title and c:valAx/c:title (rich text, c:overlay val="0"), c:legend/c:legendPos (t, b, l, r; no c:legend for none) and a c:dLbls per series with c:dLblPos, c:showVal, c:showCatName, c:showPercent and an explicit c:separator, number format General (RR-54: the series column format, as toExcelNumberFormat writes it, when its DataColumn has one; see chart-table-data.md).
    • PPTX, chartex (histogram, pareto, waterfall, funnel, treemap, box and whisker): cx:axis/cx:title, cx:legend pos, and cx:dataLabels pos with cx:visibility and cx:separator. Their fallback for apps without chartex support is a picture of the preview, which draws the options as the preview does; when that picture cannot be drawn, the classic fallback chart carries the same classic options.
    • Highlight (FA-14), preview. A highlighted mark is filled with the accent color, every other mark with the muted color; series keep their order (the highlighted one is not moved on top), as PowerPoint draws them. A chart without a highlight never calls the highlight code.
    • Highlight (FA-14), PPTX. Series colors go into c:ser/c:spPr (and c:marker/c:spPr on line, scatter and radar series); a per-point color is a c:dPt with c:idx: c:dPt/c:spPr on a column or bar, a circular c:dPt/c:marker on a line, the slice fill on a pie or doughnut. The accent is a:schemeClr val="accent1" when the deck theme holds the primary exactly (so re-theming in PowerPoint recolors it) and an a:srgbClr literal when the contrast adjustment moved it; the muted color is always an a:srgbClr literal, because a mix of two theme colors is not one scheme color with lumMod/lumOff. Data labels inside a mark are written per point where the mark colors differ. Chartex constructs are unchanged.
    • Import. fromPptx reads the same parts back into axisTitles, legend and dataLabels. A legend equal to the default for that chart (right for multi-series, pie and doughnut; none otherwise) is not recorded, so decks that never set the field import unchanged. Anything the three fields cannot express (per-series label overrides, number formats, rich-text titles, manual layouts) is reported with a diagnostic and not invented. The highlight is not inferred from the colors (a native chart's fills do not say which names were highlighted, and a hand-colored chart must not turn into a highlight): in full provenance mode the exporter records the authored highlight in the chart's OPF_DATA_V1 data record, and fromPptx restores it while the chart's cached data is unchanged. With provenance: false or 'references-only', or after the data was edited in PowerPoint (chart-data-provenance-changed), the chart imports without a highlight and keeps the colors it shows.

    Text alternative

    Chart.alt (FA-09) is a string: what the chart shows, in a sentence or two (the point and the key numbers), not "a chart". Unlike the three options above it changes no geometry.

    • Preview. The chart's SVG group carries role="img" and aria-label; the role makes the drawn marks inside presentational, so the label is the chart's one announcement. The text beside the chart stays reachable: the slide is a labeled group, not an image (see Accessibility of the preview).
    • PPTX. The value is the chart frame's p:nvGraphicFramePr/p:cNvPr/@descr, the same attribute pictures use, on classic charts and on chartex (Office 2016) frames. fromPptx reads it back into alt. Without alt (RR-105) the frame carries a generated description, the chart type with its series and categories in plain English ("Column chart: Sales and Cost by Quarter, 3 categories"), so PowerPoint does not report missing alternative text; import leaves a description in the generated form out of the document (also a stale one: PowerPoint keeps the description when a series or a column is renamed), and reads any other text as alt. A table without alt is described by its column names and row count the same way.
    • Empty string. "" marks the chart decorative, like an empty Asset.alt: the preview writes no label and hides the group (aria-hidden), and the PPTX frame carries PowerPoint's own "Mark as decorative" marker (the adec:decorative extension of p:cNvPr), not descr="", which PowerPoint writes for any shape without alt text. Import reads the marker back as alt: "". A chart nearly always carries a message, so opf/chart-text-alternative reports it as info.
    • Validate. opf/chart-text-alternative passes a chart with a non-blank alt. Without alt it still passes when text, a table or a subtitle sits beside the chart; otherwise it reports the chart and offers a quick fix that focuses the alt field. opf/poor-alt-text flags a bare "chart", a URL, a leading "chart of" and alt text over 250 characters.

    Defaults and geometry

    A chart that sets none of the four fields draws its type's defaults, including the chart layer of column, bar, line, area and combo charts. A chart with options reserves space for its legend and titles, so its geometry differs from a chart without them. The implementations require coordinated Core, renderer, PPTX and editor versions; use the compatibility matrix.

    Not in this change

    Per-series data label overrides (column number formats are RR-54, chart-table-data.md), a rotated or rich-text axis title, a chart title, a legend that overlays the plot, manual plot-area layout, secondary axes outside combo charts, and trendlines. Charts from external spreadsheets stay descoped (the ChartDataSource form was removed from the schema).

    A doughnut hole takes the surface color in both engines even when the chart has an explicit legend position or data labels (LH-182). Core retains the current circular plot after legend space is reserved; the preview fills the hole, and PPTX pins that plot with a surface-colored ellipse under the chart. This surface-only mark is consumed on import without discarding authored legend or label options.

    Data-dependent chart drawings

    The preview and PPTX share the draw plan below. These are representation adaptations, with native editing and layout fidelity qualified separately. The source chart stays unchanged. A public type-adaptation warning is not emitted for every family; the diagnostic column states the actual validation behavior.

    Source and dataShared drawingData treatmentValidation diagnostic
    World map whose labels are mostly non-places, such as Q1–Q4Clustered columns (map-as-columns)Every numeric series and data order retainedNo dedicated adaptation warning
    Pareto with at least two numeric seriesClustered columns (pareto-as-columns), without a cumulative curveEvery series and category retained in data orderopf/chart-mapping-adapted
    Box-and-whisker with one value per unique categoryOne distribution per series (box-per-series)All numeric observations retained; categories become a shared group named after the category columnNo dedicated adaptation warning
    Pie or doughnut with at least two numeric seriesOne concentric doughnut ring per series (nested-rings), first series innermostEvery series/category/value retainedNo dedicated adaptation warning
    Scatter with a nonnumeric X columnNumeric series against category positions 1, 2, … (scatter-by-position)Numeric series retained; the unusable X column is omitted from the drawingopf/chart-series-dropped names the omitted X column

    Other one-series constructs can leave additional series out and report opf/chart-series-dropped; this differs from an all-series-preserving adaptation. A multi-series pie becoming nested rings is not a claim that its second series was lost.

    Multi-series Pareto adaptation

    A Pareto chart sorts one numeric series and draws its cumulative share. When the source has two or more numeric series, OPF preserves every series and category in data order as clustered columns in both the preview and PPTX. Validation reports opf/chart-mapping-adapted at the chart's type. It does not claim that these clustered columns are a Pareto chart, and does not discard a baseline series to produce a cumulative curve. Use one numeric series for the Pareto representation.

    Validation and conversion reports

    opf validate and validate perform semantic chart checks. Drawing conversions through opf convert or the Node convert API also retain the selected opf/chart-mapping-adapted and opf/chart-series-dropped warnings for SVG, PNG, PDF and full-slide image-mode PPTX. Warnings follow the actual drawn slide selection, appear once per affected chart, and leave output bytes unchanged. Native PPTX retains its existing pptx/chart-data-adapted exporter notices for representation changes or omitted series, without a duplicate core advisory. Converting between deck text formats keeps its format/reference-only reporting contract. Direct renderer/exporter callbacks are separate from the Node conversion report; use semantic validation when reviewing the source data.

    The PPTX exporter also owns its adaptation notices with charts: "picture"; core forwarding applies to full-slide image-mode PPTX (as: "images"), avoiding duplicate warnings in both routes.