When I read a public CaptchaTheCat comparison, I look at the measurement name and axes before reading differences from a chart. A graphic can make a small shift appear large when its domain is restricted. That can be a deliberate editorial choice for a detail view. The viewer still needs to know the bounds and units that were used. I give the caption and the chart a shared local definition and test their agreement.
Written with AI assistance. All chart data below are synthetic and concern fictional durations. The example ran locally, and the cover was prepared with AI assistance.
Start by documenting which comparison the graph represents
A chart can show several summary durations for one selected population. It can also show individual measurements, or the change relative to a chosen baseline. Its axis can look similar in each group while the meaning of the points changes. Use the statistic name, time unit, relevant observation period, and a population label beside the chart. A legend saying seconds cannot establish whether the points measure a median, mean, quantile, or difference.
For the toy chart, the series holds two fictional durations in seconds. Its specification names the lower and upper display bounds and whether it uses a linear scale. The caption explains either that the axis starts at zero or that its range begins above zero. The checker treats the statement about the baseline as part of the published chart contract.
I would start with one geometry or data label assertion about where the axis begins and one assertion about the caption. Reading a title in an image file is a brittle way to test a single chart. A shared specification can capture the choices, and a targeted rendering check can show that the implementation displayed them rather than quietly applying a library default.
Replay one misleading caption with synthetic values
The example values are 92 and 98 seconds. The first illustrative chart begins at 90 and ends at 100. The share of the plotted space between the two values is large, even though the absolute difference is six seconds. A separate chart that starts at zero gives the same observations more context. Both outputs need a caption that corresponds to what the viewer can see.
from dataclasses import dataclass
from decimal import Decimal
@dataclass(frozen=True)
class Axis:
lower: Decimal
upper: Decimal
unit: str
scale: str
def validate_series(values, axis):
if axis.scale != "linear" or axis.unit != "seconds":
raise ValueError("example requires a linear axis in seconds")
bounds = (axis.lower, axis.upper)
if not all(x.is_finite() for x in bounds) or not 0 <= axis.lower < axis.upper:
raise ValueError("invalid axis limits")
if not values:
raise ValueError("no eligible measurements")
if not all(x.is_finite() and axis.lower <= x <= axis.upper for x in values):
raise ValueError("measurement outside declared axis")
def caption(values, axis):
validate_series(values, axis)
return f"Linear scale, {axis.lower} to {axis.upper} {axis.unit}"
D = Decimal
sample = [D("92"), D("98")]
detail = Axis(D("90"), D("100"), "seconds", "linear")
overview = Axis(D("0"), D("100"), "seconds", "linear")
assert caption(sample, detail) == "Linear scale, 90 to 100 seconds"
assert caption(sample, overview) == "Linear scale, 0 to 100 seconds"
try:
caption(sample + [D("108")], detail)
except ValueError as error:
assert str(error) == "measurement outside declared axis"
else:
raise AssertionError("an out-of-range observation was hidden")
print("Same observations; 90–100 s detail and 0–100 s overview declared")
The local run printed Same observations; 90–100 s detail and 0–100 s overview declared. One test also verifies that a newly observed 108 fails under a strict display contract. This fixture deliberately rejects clipped input. A different chart may intentionally show only a range and disclose excluded points, but the intended behavior should be visible to the reviewer.
Describe absolute differences without reading them from pixel distances
The six-second distance between 92 and 98 is 60 percent of a ten-second display window. It is six percent of a 100-second display span. Neither percentage describes the relative change in the underlying measurement unless a distinct baseline and calculation were declared. Figures should expose enough labeled values for the reader to make the intended comparison from the data.
If you use a bar chart, an axis starting above zero can change what the bar length communicates because the visible base changes. A detail line or dot view can use closer bounds to inspect changes between observations, with a clear note about the restricted range. Choose a chart type whose visual encoding suits the question and check the default range it actually uses.
An accessible table beside a chart can show the exact observed values, the units and the underlying comparison category. Keep it in sync with the chart's selected population. A table containing every observation paired with a chart showing a filtered subset needs separate labels. Otherwise someone using only the table may produce a valid answer for a different set of measurements.
Make units part of validation rather than only a suffix
Suppose one input value of 98 arrived in seconds and another value of 92000 arrived in milliseconds. Converting the latter yields 92 seconds under the ordinary relationship between those units. It does not say the two durations measure the same task boundary. Verify their measurement definitions and then normalize compatible units before comparing the values.
An adapter can expose a normalized value and retain the original unit separately. The plot and its caption can receive the normalized unit from the same object. Then a formatting change to minutes must account for both the input values and the axes. Test one deliberate unit mismatch, and make the resulting chart unavailable until the source or configuration can explain it.
I would also test a very small nonzero measurement after formatting. A measurement rounded to 0.0 seconds still describes a captured observation. A chart label that displays an explicit zero should be interpretable alongside the raw value or documented precision. That prevents a reader from confusing rounded values with missing evidence or an unsupported case.
Control when a chart can adapt its range
Automatic bounds can be helpful for exploratory views. A publishing chart with a fixed axis can be useful when someone compares different reporting periods side by side. Decide whether its domain can change and record that rule. Two charts with identical plot sizes but different axis bounds require a clear note before a reader compares visual distances.
For a fixed view, try a fixture that adds one valid measurement just outside the current range. The sample code refuses to build the declared chart. An alternative is to widen the range and update the figure and caption together. Another policy can keep the view and disclose that one observation sits outside it. Test whichever choice your publication actually uses.
For an adaptive view, check whether the caption updates on a new range when filtering by period or population. A caption written by hand for the original plot can become wrong after the underlying display changes. Read the effective scale in the renderer where its public API supports that check. Preserve the configured and effective range separately if they can differ.
Retain the meaning when exporting the figure
A dashboard widget may have a tooltip showing evidence that disappears in a screenshot or exported image. Test the export if people actually share the chart outside its original page. The axis unit, scale and selected population should still be clear in that delivery context. If a shared file includes a standalone graph, give it enough caption detail for someone to read without click-through interactions.
I would produce one deliberately incorrect fixture caption and verify that the review detects it even when every plotted value is correct. Add a record with a missing value and make sure the chart can explain how it treated the hole. A line drawn across an unavailable observation can imply continuity that was never measured. The intended representation should follow the user's question and the available data.
Keep a short chart release record with the source version, selected statistic, unit conversion, and comparison range. Preserve the full originating values under the authorized data policy. If the report changes a label or an axis at a later date, the reviewer should be able to identify the previous rendering decision without inferring it from an old screenshot alone.
Check the effect of filtering and repeated panel comparisons
Suppose a regular dashboard presents one panel per reporting period. A developer chooses an adaptive range for each panel, and all panels end up with the same visible height. An apparent equal vertical distance can represent two seconds in the first panel and ten in the second. If readers are expected to compare gaps by eye, give the panels a shared declared bounds policy or include prominent per-panel range evidence.
A filtering test can use one predefined period with a single eligible point. The renderer may choose reasonable bounds automatically or reject the display when the range collapses. Choose the behavior explicitly and confirm the caption still agrees. The plotted dot can be valid while the report lacks enough evidence to say how values usually behave across the full time range.
In a separate test, include a comparison with no eligible points. The figure can show an unavailable state with its population and date labels. Avoid an empty zero-based canvas whose caption can be read as a measured result of zero seconds. To verify this, put an exact permitted zero in a valid fixture and compare its label with the unavailable panel.
Decide whether labels survive the smallest distribution size
One more practical check is to render the chart at the size it will appear in an article preview. A long caption may wrap or be cropped. The exact values can remain in an accessible table or accompanying text. A reviewer should still be able to find the unit and identify a restricted scale without clicking a tooltip that does not exist in an exported image.
Document which details belong inside the chart itself and which are available in its adjacent explanation. Keep the labels in a deliberate order so one missing display element cannot change the apparent computation without a review flag. That makes the chart more useful across the article, exported image and any lightweight reading layout.
Review one comparison before reusing its style
Start with the two observations in the fixture and produce a zero-based overview and a labeled detail. Ask a colleague what each view says about the size of the change. Give them the exact values and axis range to see whether the published explanation matches the arithmetic. This test can help select a chart style that serves the comparison.
Open CaptchaTheCat to examine the public metric names and displayed units for the view you are reading. Apply the same idea to a chart built from compatible approved or synthetic measurements. Confirm the range, units and caption before drawing a conclusion from how far apart the points look.
Further reading
Show Ties Honestly in a CaptchaTheCat Scorecard gives a complementary example about keeping displayed numbers and exact observations in agreement.
Test a Benchmark Percentage That Rounds to 100% explains how a plausible-looking label can conceal a material difference in the underlying calculation.
Top comments (0)