JsonCut

Charts in automated images: readable at feed size

Most chart images fail at 480 px, not in the design file. Axis honesty, label budgets, contrast thresholds and a template contract for data-driven charts.

Abstract geometric illustration for Charts in automated images: readable at feed size

A chart rendered from a template has no tooltips, no zoom and no second chance at a label. How to fix slots, print the values, meet contrast thresholds and check every export at the size it actually arrives.

The chart is the only thing the reader gets

A weekly report goes out as one image: a line, six bars, a total in the corner. It was designed at 1080 pixels, approved in the Studio, and rendered 40 times last quarter from a CSV. Nobody has looked at it at the size where it actually arrives — a 400-pixel card in a chat preview, where the axis labels are nine pixels tall and a German decimal comma has pushed the last value out of its bar.

Automated chart images fail differently from hand-made ones. A designer can nudge a label at the last minute; a template cannot. Every decision a human would make in front of the finished file — how many categories fit, where the axis starts, how the number is rounded, which series gets the accent colour — has to be made once, in the template and in the data contract, before the batch runs. This article is a checklist for those decisions.

Abstract dark gradient artwork with soft violet, magenta and amber blobs behind a fine grid and film grain, no text

Start with the sentence, not the chart type

Write the sentence a reader should be able to say after seeing the image. "DACH grew fastest and is now a third of revenue." "Churn fell for three months, then flattened." If the sentence needs an "and" that joins two different subjects, the image needs two charts or one fewer series.

This matters more in a rendered image than on a dashboard, because an image is lossy by design: no hover, no tooltip, no zoom, no table underneath. Everything the sentence needs has to be printed on the canvas. Anything that is not printed is not available to the reader, and a chart whose message lives in the presenter's voice notes is a decoration with numbers on it.

Choose the encoding before the styling

A template locks in the encoding. Pick one that still works when a category label is long and one value is missing.

The sentence namesEncoding that survivesAvoid in a rendered image
Rank and magnitude of 5–8 itemsHorizontal bars, sorted by valuePie with eight slices, anything 3-D
Share of a whole, at most five parts100% stacked bar with values insideDonut whose legend sits beside it
Change over time, 6–24 periodsLine with labels at both endsClustered columns with 24 periods
One number plus directionLarge figure with a delta chipGauge or speedometer
Distribution of one measureDot strip or histogramA smooth "trend" curve through raw points
Two measures per itemPaired bars, or a scatter with one labelled pointDual axis without printed units

Sorted bars beat alphabetical order whenever the sentence is about ranking, because the reader compares lengths anyway; sorting does that work for them. Horizontal bars also give long category names room to breathe, which in a fixed template is the difference between a readable label and an ellipsis.

Axes: where zero belongs

Bars encode length. A bar that starts at 40 and ends at 44 is ten times longer than a bar from 0 to 4, but only 10% higher — truncating a bar axis changes the ratio the reader perceives, not just the picture. Lines encode position and slope, and a non-zero minimum is often the honest choice for a line over a narrow range, as long as the minimum is printed.

EncodingBaselineTruncationWhat the reader wrongly concludes if the label is missing
Bar, columnZeroNot allowedSmall differences look like multiples
Area, stacked areaZeroNot allowedShares appear to change size
LineZero or a printed minimumAllowed with min and max printedA 3% move looks like a recovery
Dot plotZero or a printed minimumAllowed with the minimum printedThe spread looks wider than it is

One rule covers all four rows: the reader must be able to read the value of every mark without a tooltip. If they cannot, the axis is decoration.

Numbers that survive the pipeline

Values arrive from a spreadsheet, a PIM or an API, and the renderer prints what it is given. Formatting therefore belongs in the data layer, where it can be tested, not in the template where it is invisible until the export.

RuleExampleWhat it prevents
One unit per chartAll values in EUR millionsMixing cents with millions
Fixed decimals per series12.4 and 9.8, never 12.4 and 9.75Ragged labels and false precision
Locale separators from the data1.234,5 for de-DE, 1,234.5 for en-USThe renderer guessing a locale
Round for the label, keep the exact value in the payload12.4% on the canvas, 12.43 in the rowSum checks that no longer add up
Print the unit once, in the subtitle"Revenue, EUR m""m" repeated after every label

Add a sum check. When the chart shows parts of a whole, the parts must add up to the printed total — or the chart must say "not to scale". A mismatch is the most common silent defect in automated reporting: the render succeeds, the layout is fine, and two numbers in the same picture contradict each other. It is the same discipline that bulk data hygiene applies to the input side of a batch.

Type and contrast at the size the image arrives

Design files are judged at 1080 pixels. Feeds show a fraction of that, and scaling is linear, so the arithmetic is simple and unforgiving:

Label size in the fileAt 400 px wideAt 540 px wide
24 px9 px12 px
32 px12 px16 px
48 px18 px24 px
64 px24 px32 px

The ratios, not a standard: 400/1080 is 0.37. If your channel renders at another width, multiply. The practical consequence is that axis labels below 32 px in a 1080 px canvas become texture rather than text, so budget 48 px for anything a reader has to read — then test the actual export instead of the design file.

Contrast has thresholds you can check. WCAG 2.2 asks for 4.5:1 between text and its background, 3:1 for large text — 18 pt, or 14 pt bold, roughly 24 px and 18.5 px — and 3:1 for graphical objects that are required to understand the content. The last one is what chart templates miss: a 1-pixel gridline or a 2-pixel axis rule in the brand's light grey often sits at 1.5:1 and disappears in print or in a scaled-down WebP. Measure the ratio on the rendered pixel, not on the design token, because anti-aliasing and gradient backgrounds change the result. The thresholds are defined in Understanding SC 1.4.3 and SC 1.4.11.

Colour that works without hue

A noticeable share of readers cannot separate red from green reliably, and brand palettes are rarely built with that in mind. WCAG 1.4.1 requires that colour is not the only visual means of conveying information. A lightness difference of at least 3:1 between two series counts as an additional distinction, but the safest additional cue is text: a direct label at the end of each line, or a value inside each segment.

ColorBrewer is a practical shortcut. It filters palettes for colorblind safe, print friendly and photocopy safe, and exports HEX values you can paste straight into a template's colour inputs. Two rules keep the result calm in automation: at most three hues plus neutrals, and one accent colour reserved for the series the sentence is about. If every series is highlighted, none is.

Put the chart in the template, not in the data

The template should own the shape; the data should own the values. A payload that keeps that split looks like this:

{
  "title": "Revenue by region, Q3 2026",
  "unit": "EUR m",
  "categories": ["DACH", "Nordics", "Benelux", "France", "Other"],
  "values": ["12.4", "9.8", "6.1", "5.4", "3.9"],
  "highlightIndex": 0,
  "accentColor": "#F26B3A",
  "axisMin": 0,
  "axisMax": 15,
  "sourceNote": "Finance, Q3 2026"
}

JsonCut's typed inputs support exactly this split: string, number, boolean, colour and bounded flat string arrays, described by the published input contract. A batch is pinned to one immutable template version, every row is validated before queueing, and invalid rows are reported without stopping the valid ones. Batch size depends on the plan — 50 rows on Hobby, 250 on Pro, 500 on Business — and a CSV body can hold up to 2,000,000 characters. For chart templates that yields three constraints:

  • A fixed slot count per template. Five bars, not "however many rows arrived". Compute an "Other" row upstream so the design never reflows.
  • Series as a bounded array of preformatted strings. The renderer draws the label it receives; number formatting stays in the job that assembles the payload.
  • An explicit axis maximum. Automatic scaling is what makes two months of the same report incomparable. A fixed axisMax turns a chart into a small time series the reader can compare without being told.

What the template should not accept is a free-text label of unknown length. Cap it in the data layer — 14 characters per category is a workable starting point — or the labels collide on the first long customer name. Template input design covers the contract itself; a chart adds the slot budget on top.

A pre-flight check before the batch

CheckHow to testWhat it catches
Slot countRender one row with the maximum number of categoriesCollapsed bars, overflowing labels
Longest labelUse the longest real category name, not the averageTruncation in the live font
Longest numberRender the largest value the data can produceA value label outside the plot
Axis honestyRead the minimum off the exported imageA truncated bar axis
Sum checkAdd the parts and compare with the printed totalNumbers that contradict each other
ContrastSample text and its actual background in the PNGFaint labels on gradients
Feed sizeDownscale the export to 400 px and read itCharts nobody can read
Text alternativeWrite the sentence as alt textAn image that says nothing to a screen reader

Alt text for a chart is not "bar chart". It is the sentence from the first section, with the numbers that carry it: "Revenue by region, Q3 2026: DACH 12.4 million euros, up from 10.9; Nordics 9.8." The alt text article covers how that field travels through CSVs and the API. And if the same chart must also run square and vertical, the safe-area rules in aspect ratio safe areas decide where the labels may sit before you discover the crop in the export.

The order that survives a re-render

None of this is chart aesthetics. It is the difference between an image that still answers a question a month after it was rendered and one that only looked right on the screen where it was approved. Decide the sentence, fix the slots, print the values, check the export at feed size — in that order, once, in the template.

Sources

  • W3C, Understanding SC 1.4.3 Contrast (Minimum), WCAG 2.2: https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html — 4.5:1 for text, 3:1 for large text, threshold values are not rounded (abgerufen 2026-11-29)
  • W3C, Understanding SC 1.4.11 Non-text Contrast, WCAG 2.2: https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html — 3:1 for graphical objects required to understand content (abgerufen 2026-11-29)
  • W3C, Understanding SC 1.4.1 Use of Color, WCAG 2.2: https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html — colour must not be the only visual means; 3:1 lightness difference counts as an additional distinction (abgerufen 2026-11-29)
  • Cynthia Brewer, Mark Harrower, The Pennsylvania State University, ColorBrewer 2.0: https://colorbrewer2.org/ — filters for colorblind safe, print friendly and photocopy safe palettes, HEX/CSS export (abgerufen 2026-11-29)
  • JsonCut Docs, Typed templates and bulk rendering: https://jsoncut.com/docs/templates/ — typed inputs including bounded flat string arrays, immutable template version pinning, per-row validation, batch limits 50/250/500 by plan, CSV body up to 2,000,000 characters (abgerufen 2026-11-29)

Your next post is one sentence away.Start free, no editing skills needed.