Default charts on real tables: what breaks, and what a vision model catches
434 of 600 default charts of real tables had broken text; told what to look for, two vision models flagged 96% and 99% of them, and 6% and 8% of the clean ones
A data team's dashboards, scheduled reports and alert emails are drawn by code from tables nobody looked at first, and teams now consider a vision model as the reviewer. This is what that reviewer catches, measured against the renderer's own record of where every piece of text sits. The prediction made before any chart was drawn was that such a reviewer would miss a large share; the opposite happened. In a split read after the results, GPT-6.1 Sol caught all 34 subtle overlaps and Claude Sonnet 5.5 caught 6 of them.
Main limitation: Most defects were glaring (216 of 250 overlaps clear), the prompt named both defects, and each chart was asked once. The subtle-overlap split was chosen after the results and rests on 34 charts from 18 tables.
What to do: Measure text boxes in the code that draws the chart and block on them: exact for the definition it checks, and free. Use a vision model only where the boxes cannot be read (screenshots, PDFs, slides), and measure it on your own charts first: on charts like these it flagged about one clean chart in 13 to 17.
Share of the 434 charts with a measured defect that the model flagged (all), of the 34 with only subtle overlaps, under 20% of a label (subtle; this split was read after the results), and of the 166 clean charts (false alarms). The highlighted bar is where the models part.
Both rates for both defect types are in the rates chart, with their table.
Long category names and big numbers in real data are what break a default layout. Here the ruler is the renderer itself: it reports the box of every piece of text it draws, so overlap and clipping are measured exactly, not judged, and each model is scored against that measurement.
| Default charts with a defect72%434 of 600 charts of 200 Statistics Canada tables: 99.5% of bar charts, 58% and 60% of the two line charts | Claude Sonnet 5.596%of defective charts flagged, both defect types (418 of 434); 6% of clean charts flagged (10 of 166) | GPT-6.1 Sol99%of defective charts flagged, both defect types (430 of 434); 8% of clean charts flagged (13 of 166) | Where they differ6 of 34subtle overlaps (under 20% of the label) flagged by Claude Sonnet 5.5; GPT-6.1 Sol flagged 34 of 34 |
In plain words
A chart that a program draws without anyone looking can come out broken: x labels printed on top of each other, or a long title running off the edge of the image. This study asks how often that happens with a charting library's default settings on real tables, and whether a vision model, shown the image and asked to check it, notices.
The tables are 200 official tables from Statistics Canada: the 5045 current tables its data service lists were put in a random order with a fixed seed, and the first 200 that could give all three charts were kept (515 tried). The findings describe tables like those. Each was drawn three ways with matplotlib's defaults, as a first draft would be: a bar chart of the latest period, a line chart of one series, and a line chart of up to five series with a legend. That gives 600 charts. The rate of broken charts describes these three plain specifications on these tables. It is not a fact about the library: rotate the labels or turn the bars sideways and the rate changes.
Both models saw the same image and the same short prompt, which named the two problems and asked for a yes or no on each. Each model gets two numbers, always side by side: the share of broken charts it flagged, and the share of clean charts it flagged anyway. A model that flags everything catches every defect, and a model that flags nothing never raises a false alarm, so either number alone says little.
- Overlap
- Two pieces of text whose boxes cross by at least 2 pixels both ways on a 640 by 480 image.
- Clipped
- Text whose box runs at least 2 pixels past the image edge.
- Clear
- An overlap covering at least 20% of the smaller label, or text at least 20% outside the image.
- Catch rate
- Charts the model flagged for a defect, out of the charts that have it.
- False-alarm rate
- Charts the model flagged for a defect, out of the charts that do not have it.
- 95% interval
- The range the true rate plausibly sits in, given how many tables were sampled.
The evidence
How often the default charts broke
434 of 600 charts (72%) had overlapping or clipped text. Nearly every bar chart broke (199 of 200): with up to 25 categories and their names written flat under the bars, the names run into each other. The title was the commonest casualty of clipping: official table titles are long, and on 294 charts the title ran past the image edge. Overlapping x labels were the overlap on 236 of the 250 charts with one; the rest were legend entries sitting on tick labels or the axis label.
| Chart | Any defect | Overlap | Clear overlap | Clipped | Clearly clipped |
|---|---|---|---|---|---|
| Bar chart, latest period | 199 of 200 (99.5%) | 198 of 200 (99%) | 198 of 200 | 159 of 200 (80%) | 97 of 200 |
| Line chart, one series | 115 of 200 (58%) | 19 of 200 (10%) | 1 of 200 | 105 of 200 (53%) | 67 of 200 |
| Line chart, up to 5 series | 120 of 200 (60%) | 33 of 200 (17%) | 17 of 200 | 106 of 200 (53%) | 70 of 200 |
| All 600 charts | 434 of 600 (72%) | 250 of 600 (42%) | 216 of 600 | 370 of 600 (62%) | 234 of 600 |
What the models caught
Catch rate and false-alarm rate per model and defect type; the thin line is the 95% interval, allowing for tables
Caught: flagged, of charts with the defectFalse alarm: flagged, of charts without it
| Defect | Model | Caught | Interval, tables | Interval, Wilson | False alarms | Interval, tables | Interval, Wilson | Caught, clear defects only |
|---|---|---|---|---|---|---|---|---|
| Overlapping text | Claude Sonnet 5.5 | 222 of 250 (88.8%) | 83 to 93% | 84 to 92% | 9 of 350 (2.6%) | 1 to 5% | 1 to 5% | 216 of 216 (100%) |
| Overlapping text | GPT-6.1 Sol | 249 of 250 (99.6%) | 98 to 100% | 98 to 100% | 4 of 350 (1.1%) | 0 to 4% | 0 to 3% | 215 of 216 (99.5%) |
| Clipped text | Claude Sonnet 5.5 | 363 of 370 (98.1%) | 95 to 99% | 96 to 99% | 12 of 230 (5.2%) | 3 to 10% | 3 to 9% | 229 of 234 (98%) |
| Clipped text | GPT-6.1 Sol | 365 of 370 (98.6%) | 96 to 100% | 97 to 99% | 17 of 230 (7.4%) | 4 to 13% | 5 to 12% | 230 of 234 (98%) |
| Either | Claude Sonnet 5.5 | 418 of 434 (96.3%) | 93 to 98% | 94 to 98% | 10 of 166 (6.0%) | 3 to 12% | 3 to 11% | not split |
| Either | GPT-6.1 Sol | 430 of 434 (99.1%) | 97 to 100% | 98 to 100% | 13 of 166 (7.8%) | 4 to 15% | 5 to 13% | not split |
| Either, right type | Claude Sonnet 5.5 | 417 of 434 (96.1%) | 93 to 98% | not computed | as above | as above | as above | not split |
| Either, right type | GPT-6.1 Sol | 430 of 434 (99.1%) | 97 to 100% | not computed | as above | as above | as above | not split |
Counting a chart as caught only when the model named a defect it has changes little: 417 of 434 for Claude Sonnet 5.5 and 430 of 434 for GPT-6.1 Sol.
Clear defects were caught almost every time by both models. The difference is in the subtle ones. On the 34 charts whose largest overlap covers less than 20% of a label (date labels on line charts touching by a few pixels), GPT-6.1 Sol flagged 34 and Claude Sonnet 5.5 6 (95% interval 7 to 39%, allowing for tables). On every one of the 28 charts where they disagreed, from 16 tables, GPT-6.1 Sol flagged and Claude Sonnet 5.5 did not. That is this sample: the split was chosen after the results, on 34 charts from 18 tables, and needs a fresh sample to confirm. Every overlap Claude Sonnet 5.5 missed was of this kind.
| Chart | Claude Sonnet 5.5 | GPT-6.1 Sol | ||
|---|---|---|---|---|
| Caught | False alarms | Caught | False alarms | |
| Bar, overlap | 198 of 198 | 0 of 2 | 198 of 198 | 0 of 2 |
| Bar, clipped | 157 of 159 | 4 of 41 | 158 of 159 | 6 of 41 |
| Line, overlap | 5 of 19 | 2 of 181 | 19 of 19 | 2 of 181 |
| Line, clipped | 102 of 105 | 5 of 95 | 103 of 105 | 6 of 95 |
| 5 lines, overlap | 19 of 33 | 7 of 167 | 32 of 33 | 2 of 167 |
| 5 lines, clipped | 104 of 106 | 3 of 94 | 104 of 106 | 5 of 94 |
Three charts, worked through
- A small overlap. Financial indicators of corporate sector, national balance sheet accounts, one series: date labels on the x axis cross by up to 3.7 pixels across the full label height. GPT-6.1 Sol flagged it; Claude Sonnet 5.5 said the chart was clean. Whether a reader minds a touch of a few pixels is a fair question; the definition, fixed before any chart was drawn, counts it.
- Text that is gone. Canadian government finance statistics for the federal government, one series: the y axis label "Dollars (millions)" sits 97% outside the image, pushed off the left edge by wide tick labels. Neither model flagged clipping. The renderer still reports the box, so the measurement finds it. Read after the results: 7 charts, from 5 tables, have a label at least 80% outside the image. On the 4 where it is the y axis label, no reply named that label (one flagged clipping elsewhere on the chart); on the 3 where it is a legend entry, both models named the legend. Too few charts to call a pattern.
- A false alarm that is not wrong. Canadian passenger bus and urban transit industries, revenue, selected..., five series (a chart that mixes units on one axis): Claude Sonnet 5.5 said the legend covers the y tick labels. The legend's frame does sit on them, but the definition compares text with text, and no two pieces of text cross. 7 of Claude Sonnet 5.5's 9 overlap false alarms named the legend this way.
The gallery
Twelve charts from each class, picked at random with a fixed seed and sorted by the size of the defect. Each image is the exact chart the models saw, with the measured boxes outlined: overlapping textclipped text, outlined where it meets the edge Below each is what each model said, quoted from its reply and shortened.
Overlap only: 12 of the 64 charts in this class

Bar chart, latest period, table 13100491. Measured: 22 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels (Newfoundland, Canada, Prince Edward Island, Nova Scotia, New Brunswick, Quebec..."
GPT-6.1 Sol: caught overlap. "The geography tick labels along the x-axis overlap one another."

Bar chart, latest period, table 14100029. Measured: 15 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels (geography names such as Newfoundland and Labrador, Canada, Prince Edward Island, Nova..."
GPT-6.1 Sol: caught overlap. "The geography tick labels along the x-axis overlap one another."

Bar chart, latest period, table 23100266. Measured: 14 overlapping pairs, the largest "Other flight personnel" and "General management and..." over 100% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels overlap one another (e.g. 'Total, average number of employees', 'Pilots and copilots'..."
GPT-6.1 Sol: caught overlap, false alarm on clipped. "The employment category tick labels along the x-axis overlap one another. The leftmost and rightmost x-axis tick labels are cut off by the image edges."

Bar chart, latest period, table 32100066. Measured: 15 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels (geography names such as Newfoundland, Canada, Prince Edward Island, Nova Scotia, New..."
GPT-6.1 Sol: caught overlap. "The geography tick labels along the x-axis overlap one another."

Bar chart, latest period, table 35100068. Measured: 22 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels (Newfoundland, Canada, Prince Edward Island, Nova Scotia, New Brunswick, Quebec..."
GPT-6.1 Sol: caught overlap. "The geography tick labels along the x-axis overlap one another."

Bar chart, latest period, table 36100616. Measured: 27 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels (geography names such as Newfoundland..., Prince Edward Island, Nova Scotia, New..."
GPT-6.1 Sol: caught overlap. "The geography tick labels along the x-axis overlap one another."

Bar chart, latest period, table 38100271. Measured: 22 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels (geography names such as Newfoundland, Canada, Prince Edward Island, Nova Scotia, New..."
GPT-6.1 Sol: caught overlap. "The geography tick labels along the x-axis overlap each other."

Bar chart, latest period, table 32100351. Measured: 11 overlapping pairs, the largest "Alberta" and "British Columbia" over 72% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels overlap each other: Canada/Eastern Canada, Quebec/Ontario/Western Prairie..."
GPT-6.1 Sol: caught overlap. "The geography tick labels along the x-axis overlap one another."

Line chart, up to 5 series, table 21100160. Measured: 2 overlapping pairs, the largest "100" and "Total sales to all clients" over 40% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The legend overlaps the y-axis tick label '100' at the top left, and the legend also covers the '80' tick..."
GPT-6.1 Sol: caught overlap. "The legend overlaps the y-axis tick labels 100 and 80."

Line chart, up to 5 series, table 21100065. Measured: 3 overlapping pairs, the largest "40" and "Sales outside Canada (exports)" over 37% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The legend box covers the y-axis label 'Percent' and the y-axis tick labels '60' and '40'."
GPT-6.1 Sol: caught overlap. "The y-axis tick labels 60 and 40 overlap legend entry text."

Line chart, one series, table 36100578. Measured: 8 overlapping pairs, the largest "2026-01" and "2026-05" over 6% of the smaller label.
Claude Sonnet 5.5: caught overlap. "The x-axis tick labels (2023-09, 2024-01, 2024-05, 2024-09, and so on) are spaced so tightly that neighboring..."
GPT-6.1 Sol: caught overlap. "Adjacent x-axis tick labels overlap."

Line chart, up to 5 series, table 36100579. Measured: 8 overlapping pairs, the largest "2026-01" and "2026-05" over 6% of the smaller label.
Claude Sonnet 5.5: caught overlap. "x-axis tick labels (e.g. 2023-09, 2024-01, 2024-05, 2024-09 ...) are crowded and overlap neighbouring labels"
GPT-6.1 Sol: caught overlap. "Adjacent x-axis tick labels overlap each other."
Clipped only: 12 of the 184 charts in this class

Line chart, up to 5 series, table 23100302. Measured: the title runs 299 px past the edge (48% of it outside).
Claude Sonnet 5.5: caught clipped. "The title is cut off at both the left and right edges of the image (it starts with 'nt movements...' and ends..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, one series, table 13100446. Measured: the title runs 145 px past the edge (30% of it outside).
Claude Sonnet 5.5: caught clipped. "The title is cut off at both the left and right edges of the image (it begins with 'selected causes of..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, up to 5 series, table 14100134. Measured: the title runs 143 px past the edge (30% of it outside).
Claude Sonnet 5.5: caught clipped. "The chart title is cut off at both the left and right edges of the image (it begins with 'y earnings...' and..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, up to 5 series, table 11100114. Measured: the title runs 138 px past the edge (29% of it outside).
Claude Sonnet 5.5: false alarm on overlap, caught clipped. "The legend overlaps the y-axis tick label 17500 and the top of the blue line, and the legend box covers the... The title is cut off at both the left edge ('Pension Plans' starts as 'nsion Plans') and the right edge..."
GPT-6.1 Sol: caught clipped. "Chart title is cut off at both the left and right edges of the image."

Line chart, one series, table 38100253. Measured: the title runs 110 px past the edge (24% of it outside).
Claude Sonnet 5.5: caught clipped. "The title is cut off at both the left and right edges of the image. It begins with a partial word..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, up to 5 series, table 12100145. Measured: the title runs 105 px past the edge (23% of it outside).
Claude Sonnet 5.5: caught clipped. "The chart title is cut off at both the left and right edges of the image (it begins with 'nal..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, up to 5 series, table 11100106. Measured: the title runs 104 px past the edge (23% of it outside).
Claude Sonnet 5.5: caught clipped. "The chart title is cut off at both the left and right edges of the image; it begins with "Pension Plans"..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at the right edge after 'by contrib'."

Line chart, up to 5 series, table 38100063. Measured: the title runs 97 px past the edge (22% of it outside).
Claude Sonnet 5.5: caught clipped. "The title is cut off at both the left and right edges of the image (begins with 'quisition costs' and ends..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, one series, table 35100157. Measured: the title runs 94 px past the edge (21% of it outside).
Claude Sonnet 5.5: caught clipped. "The title is cut off at both the left and right edges of the image; it begins with 'percentage and rate...'..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, one series, table 14100020. Measured: the title runs 88 px past the edge (20% of it outside).
Claude Sonnet 5.5: caught clipped. "The title is cut off at both the left and right edges of the image (it begins with 'oyment rate' and ends..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, up to 5 series, table 23100088. Measured: the title runs 83 px past the edge (19% of it outside). Mixes units on one axis.
Claude Sonnet 5.5: false alarm on overlap, caught clipped. "The legend overlaps the y-axis tick labels (1.50, 1.75, 2.00 and the 1e7 offset text). It also covers part of... The title is cut off at both the left and right edges of the image ('n passenger bus and urban transit..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."

Line chart, one series, table 10100111. Measured: the title runs 50 px past the edge (12% of it outside).
Claude Sonnet 5.5: caught clipped. "The title is cut off at both the left and right edges of the image ("...rtered banks" at the left and "Bank..."
GPT-6.1 Sol: caught clipped. "The chart title is cut off at both the left and right edges of the image."
Both: 12 of the 186 charts in this class

Bar chart, latest period, table 10100023. Measured: 167 overlapping pairs, the largest "Gross operating balance" and "Revenue" over 100% of the smaller label; the title runs 61 px past the edge (14% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels (categories under 'Statement of operations and balance sheet') overlap one another... The title is cut off at both the left and right edges of the image ('...dian government finance statistics..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis tick labels overlap one another extensively. The chart title is cut off at both the left and right edges; some x-axis tick labels extend beyond the image..."

Bar chart, latest period, table 11100050. Measured: 178 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label; an x label runs 5 px past the edge (2% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels (geography names such as 'Grand Falls', 'St. John's', 'New Brunswick') overlap one... The x-axis tick labels at the far left ('Gr...') and far right ('...Brunswick') run past the edges of the..."
GPT-6.1 Sol: caught overlap, caught clipped. "The geography tick labels along the x-axis overlap heavily with one another. The leftmost and rightmost geography tick labels are cut off by the image edges."

Bar chart, latest period, table 13100416. Measured: 96 overlapping pairs, the largest "Prince Edward Island, place..." and "Nova Scotia, place of..." over 100% of the smaller label; an x label runs 110 px past the edge (26% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels (place of residence of mother categories) overlap each other along the bottom of the... The x-axis tick labels at the far left and far right are cut off by the image edges."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis tick labels overlap heavily across the bottom of the chart. The x-axis tick labels are cut off at the left and right edges of the image."

Bar chart, latest period, table 20100003. Measured: 6 overlapping pairs, the largest "Wholesale trade" and "Wholesale trade (excluding..." over 100% of the smaller label; an x label runs 277 px past the edge (34% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels (NAICS industry names) overlap one another along the bottom of the chart, making them... The last x-axis tick label, ending in 'other hydrocarbons', is cut off at the right edge of the image. The..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis tick labels overlap one another. The x-axis tick labels extend beyond and are cut off by the right edge of the image."

Bar chart, latest period, table 21100065. Measured: 8 overlapping pairs, the largest "Sales to individuals and..." and "Sales to governments..." over 100% of the smaller label; an x label runs 34 px past the edge (7% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels overlap one another, especially the middle three labels ('Sales to businesses', 'Sales... The last x-axis tick label ('Sales outside Canada (exports)' / 'public institutions') is cut off at the right..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis category tick labels overlap one another. The rightmost x-axis category tick label is cut off by the right edge of the image."

Bar chart, latest period, table 23100051. Measured: 35 overlapping pairs, the largest "Line owned, first main track" and "Total line operated under..." over 100% of the smaller label; an x label runs 231 px past the edge (34% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels overlap one another, producing an unreadable jumble of text beneath most of the bars... The title is cut off at the right edge of the image, ending at 'by compan'. The rightmost x-axis tick labels..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis tick labels overlap one another. The chart title and the rightmost x-axis tick labels are cut off by the right edge of the image."

Bar chart, latest period, table 37100197. Measured: 22 overlapping pairs, the largest "Canada" and "Newfoundland and Labrador" over 100% of the smaller label; the title runs 114 px past the edge (25% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels (province/territory names such as Newfoundland, Canada, Prince Edward Island, Nova... The title is cut off at both the left and right edges of the image (it begins with 't rates of 25-to..."
GPT-6.1 Sol: caught overlap, caught clipped. "The geography tick labels along the x-axis overlap one another. The chart title is cut off at both the left and right edges of the image."

Bar chart, latest period, table 37100219. Measured: 174 overlapping pairs, the largest "Total major trade groups" and "Carpenters" over 100% of the smaller label; an x label runs 54 px past the edge (16% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels (major trade group names) overlap one another into an unreadable jumble along the... The title is cut off at both the left and right edges of the image (it begins mid-word at 'enticeship' and..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis tick labels overlap one another extensively. The chart title is cut off at both the left and right image edges; the outer x-axis tick labels are also cut..."

Bar chart, latest period, table 38100235. Measured: 120 overlapping pairs, the largest "Debt to gross domestic..." and "Debt to disposable income" over 100% of the smaller label; the title runs 162 px past the edge (32% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels (category names) overlap one another into an illegible jumble along the bottom of the... The title is cut off at both the left and right edges ('...rs of households and non-profit institutions..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis category tick labels overlap one another. The chart title is cut off at both the left and right edges; x-axis category tick labels are also cut off at..."

Line chart, up to 5 series, table 38100236. Measured: 12 overlapping pairs, the largest "100" and "Private non-financial..." over 78% of the smaller label; a legend entry runs 128 px past the edge (34% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "The legend overlaps the y-axis label, which is mostly hidden behind it, and it also covers the y-axis tick... The legend entries are cut off at the left edge of the image, so each one begins with a truncated 'ial..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis date tick labels overlap one another. The legend text overlaps the y-axis label and tick labels. The beginnings of all five legend entries are cut off by the left edge of the image."

Bar chart, latest period, table 21100071. Measured: 4 overlapping pairs, the largest "Prairie provinces" and "British Columbia and..." over 77% of the smaller label; the title runs 8 px past the edge (1% of it outside).
Claude Sonnet 5.5: caught overlap, caught clipped. "X-axis tick labels overlap each other: 'Canada' and 'Atlantic provinces' overlap, and 'Prairie provinces'... The title 'Periodical publishers, advertising, circulation and custom publishing revenue...' is cut off at..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis tick labels overlap one another, especially Atlantic provinces and Quebec, and Ontario, Prairie... The chart title is cut off at the right edge of the image."

Bar chart, latest period, table 14100292. Measured: 6 overlapping pairs, the largest "Unemployment" and "Unemployment rate" over 53% of the smaller label; the title runs 136 px past the edge (29% of it outside). Mixes units on one axis.
Claude Sonnet 5.5: caught overlap, caught clipped. "The x-axis tick labels overlap one another: 'Population' and 'Labour force', 'Employment' and 'Unemployment'... The title is cut off at both the left and right edges of the image. It begins 'haracteristics...' and ends at..."
GPT-6.1 Sol: caught overlap, caught clipped. "The x-axis tick labels overlap adjacent labels. The chart title is cut off at both the left and right edges of the image."
Neither: 12 of the 166 charts in this class

Line chart, up to 5 series, table 14100129. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, up to 5 series, table 21100034. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, one series, table 21100160. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, one series, table 21100212. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, one series, table 23100058. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, up to 5 series, table 33100398. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: false alarm on overlap. "Adjacent date tick labels on the x-axis overlap."

Line chart, one series, table 35100092. Measured: no overlap and no clipping.
Claude Sonnet 5.5: false alarm on clipped. "The y-axis label 'Dollars (thousands)' sits against the left edge of the image and looks partly cut off."
GPT-6.1 Sol: false alarm on clipped. "The y-axis label, "Dollars (thousands)", is clipped at the left edge."

Line chart, up to 5 series, table 35100195. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, one series, table 36100577. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: false alarm on clipped. "Y-axis label "Dollars (millions)" is clipped at the left edge."

Line chart, one series, table 37100066. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, up to 5 series, table 37100110. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.

Line chart, up to 5 series, table 38100090. Measured: no overlap and no clipping.
Claude Sonnet 5.5: said clean, correctly.
GPT-6.1 Sol: said clean, correctly.
What went wrong or was missed
- The expected finding did not happen; the opposite did. The design expected each model to catch 40 to 80% of overlaps and to raise false alarms on at least 10% of clean charts, with clipping caught less often than overlap. Both models caught 89% or more of overlaps and 98% or more of clipping, with false alarms under 10% on both types. The opposite finding, declared in advance, was that some model would catch 90% or more of overlaps with 10% or fewer false alarms: GPT-6.1 Sol did (99.6% and 1.1%).
- More charts broke than expected. The design expected 25 to 60%; it was 72%. Clipped titles drove it: the prediction did not foresee how long official table titles are.
- Many false alarms sit on the measuring line. Read after the results: of the clean charts a model flagged as clipped, 7 of 12 (Claude Sonnet 5.5) and 13 of 17 (GPT-6.1 Sol) have text running past the edge by less than the 2-pixel threshold. A model that calls those clipped is arguably right; the threshold, fixed before the run, says no. The false-alarm rates are partly a statement about where the line was drawn.
- The test was generous. The prompt named both defects and asked for a yes or no on each. A reviewer asked to "check this chart" with no hint would likely catch less. Each chart was asked once, so how much a model's answer changes from one asking to the next is not measured.
- Some charts mix units on one axis. Added after the results: the extraction kept only the first category's unit, so 17 of the 600 charts put categories with different units under one axis label (one labour force table draws counts in thousands and rates in percent as bars on one axis). The text and its layout are what this study measures, so those charts still count, but they are not charts anyone should publish. Without them: 403 of 419 caught and 9 of 164 false alarms for Claude Sonnet 5.5, 415 of 419 and 13 of 164 for GPT-6.1 Sol. A second round would check units before drawing.
- The declared intervals were too narrow. Added after the results: the design's Wilson intervals treat the 600 charts as independent, but each table gives three charts that share their text. Intervals that allow for the table are shown beside the declared ones; they are never narrower, and wider wherever a table's charts tend to agree (all charts with a defect: 68 to 77%, against 69 to 76%).
- The sample is mostly easy. Most defects here are large: 216 of 250 overlaps are clear. On the hard ones, small overlaps, the two models part ways, and there are only 34 of them, so that difference rests on few charts.
What to use when
| Check | Use it when | What it misses |
|---|---|---|
| Measure the renderer's text boxes | You draw the charts yourself, in any library that reports text extents (matplotlib, a browser's own text boxes for web charts). It is exact and runs on every chart. | Anything that is not text: a legend frame over labels, colours that cannot be told apart, a misleading axis. |
| A vision model on the image | You only have the picture: a screenshot of a tool you do not control, a PDF, a slide. Here it flagged 96% to 99% of broken charts, on charts like these. | For one model, subtle overlaps of a few pixels. It also flagged 6% to 8% of clean charts here, so a person still has to look at what it flags, and both rates need measuring again on your own inputs. |
| A person | A chart goes in front of an executive or the public, where judgment about what the chart says matters more than layout. | Volume: nobody checks every scheduled chart, every day. |
Recommendation: the box check first, as a gate in the code that draws the chart; the vision model only where the box check cannot reach; a person on what either flags.
How to roll this out with a team
- Week one, analytics engineering. Add the box check to the shared chart helper: draw, read the text boxes, fail the job or attach a warning when two cross or one leaves the image. Start it in warning mode and count.
- Week two, the team that owns the reports. Look at what it flagged and fix the defaults that cause most of it (here: flat category names on bar charts and long titles). Then switch it to blocking for scheduled reports.
- For charts you do not draw (a vendor dashboard, a partner's PDF), a vision model with a prompt that names the defects, its answers sent to a person, never auto-fixed.
- Every month. Re-run the model on a sample the box check has measured, as here, and report both rates. A model update can move either one.
- Bad news upward. One line in the monthly reporting review: charts blocked, charts fixed, charts sent with a known defect and why.
What it is worth
The assumptions below were set after the results and are not data: a team that sends 2,000 charts a month, a person who checks 120 charts an hour at US$80 an hour, and 2 days at US$640 a day to build the box check.
- A person checking every chart: 17 hours, about US$1,333 a month.
- Claude Sonnet 5.5 on every chart: about US$5 a month at about US$0.0025 per chart. At this sample's defect rate it would miss about 53 broken charts a month and flag about 33 clean ones for a person to look at.
- The box check: about US$1,280 once, then nothing per chart, and it misses none of the text defects it defines.
The case for the box check is not the money, which is small either way. It is that it never misses a defect it defines and never argues about a threshold, so it can block a job without a person in the loop.
Where AI fits
This study is a test of AI as a reviewer, built the way any AI check should be: ask it questions whose answers are already known, compare its answers with the known ones like a control group, and only then decide where it goes. Here the known answers come from the renderer, for free, on every chart. That makes the model the second check, not the first: useful where the exact one cannot reach, and worth re-measuring the same way whenever the model or the prompt changes.
Method and checks
The data
Statistics Canada tables through its Web Data Service, under the Statistics Canada Open Licence. Adapted from Statistics Canada, the tables listed in the download, latest periods available when the sample was drawn. This does not constitute an endorsement by Statistics Canada of this product.
Sample: every current table in the service's table list, shuffled with a fixed seed, taken in order until 200 tables could give all three charts (at least 3 categories with a value at the latest period, and at least 2 series with 6 or more periods); 515 tables were tried. Per table, the dimension with the most members is the category dimension; its first 25 members in the service's order are the categories; every other dimension is held at its first member, usually a total; the latest 12 periods are requested. The unit label is the unit's name from the service, with the scale word added. The table used to develop the chart code is not in the sample.
The charts
matplotlib 3.10 with its default style, size (640 by 480 pixels) and fonts, no layout call, no label rotation, no limits. Bar: the latest period across the categories; title is the table's title, x label the category dimension, y label the unit. Line: the first category with 6 or more periods. Lines: up to 5 such categories with a default legend. These specifications were fixed before the sample was drawn.
The defect definitions
Visible text: the title, axis labels, the tick labels matplotlib draws, the offset text, legend entries and legend title. Boxes come from the renderer, in image pixels. Overlap: two boxes, each cut to the image, cross by at least 2 pixels in width and 2 in height; clear if the crossing covers at least 20% of the smaller box. Clipped: a box runs at least 2 pixels past an image edge; clear if at least 20% of its area is outside. A secondary ink check drew each overlapping pair alone and counted pixels where both have ink: every one of the 250 overlapping charts had at least one pair with shared ink, so no chart's overlap rests on a box artefact alone (163 of the 19,030 overlapping pairs share no ink).
Worked examples fixed in the design before the sample, on the development table: two province names under a bar chart crossing over 53 by 14 pixels (an overlap, clear); a long title whose box ends 1.6 pixels inside the image (not clipped); two y labels touching over 1.5 pixels of height (not an overlap, under 2 pixels).
The models and the prompt
Claude Sonnet 5.5 (default settings) and GPT-6.1 Sol, each with the image attached. One run per chart. Both got the chart PNG exactly as measured and this prompt:
This image is a chart that is about to be published. Check it for two problems only.
1. Overlapping text: a piece of text (title, axis label, tick label, legend entry) that overlaps another piece of text.
2. Clipped text: a piece of text that is cut off by the edge of the image.
Reply with JSON only, no other text, in this form:
{"overlap": true or false, "overlap_where": "which text, or empty", "clipped": true or false, "clipped_where": "which text, or empty"}A reply was parsed as the last JSON block in it. A reply that could not be read was asked again once; none was excluded.
Scoring
Per model and defect type: catch rate (flagged, of the charts with the defect) and false-alarm rate (flagged, of the charts without it), always together, with Wilson 95% intervals as declared (intervals that allow for tables are under Changes after the results); the same on clear defects; and per chart specification. "Either" counts a defective chart as caught if the model flagged either type, and false alarms on charts with neither. The gallery takes 12 charts per class with a fixed seed. The counts of what was clipped and what overlapped, the measuring-line reading of the false alarms and the worked examples were read after the results.
Changes after the results
Each was decided after the results; the frozen scoring stays as declared, and every changed figure is shown beside it.
- Intervals that allow for the table (added after the results). A Wilson interval on the effective number of charts: the count divided by the design effect, which compares the spread of each rate across tables with what independent charts would give, never taken below 1. Design effects here run up to 2.2; 4 of the 19 rates come out at or below 1, or cannot be estimated, and keep the declared interval. A percentile bootstrap that resampled tables gave intervals narrower than the declared ones near 0% and 100%, so it is not used. The population these describe: current Statistics Canada tables that can give all three charts, drawn with these three chart specifications.
- A unit check (added after the results). Each sampled table's metadata and latest data point per category were read again from the service and the extraction's unit rule applied to every category, not only the first: 11 bar charts and 6 multi-line charts mix units; a one-series chart cannot. The rates are shown without them; the frozen extracts and results are unchanged.
- The right-type catch rate (added after the results). The declared "either" rate counts a chart with either defect as caught if the model flagged either type; the right-type rate requires a flagged type the chart has.
- Also read after the results: the split of overlaps into clear and subtle for the headline (the clear definition itself was declared), the paired comparison on subtle overlaps, the charts with a label mostly outside the image, and the measuring-line reading of false alarms.
Predictions, declared before the runs
2 held, 5 missed, and the declared opposite finding happened. The design, definitions, chart specifications, prompt and these predictions were committed before the sample was drawn, and none changed after.
- Missed: Between 25% and 60% of the 600 charts have at least one defect (overlap or clipped).
- Held: Bar charts have the highest defect rate of the three specifications, and most bar-chart defects are overlapping x tick labels.
- Missed: Each model catches between 40% and 80% of charts with an overlap.
- Missed: Each model catches clipping on a smaller share of clipped charts than it catches overlap on overlapping charts.
- Missed: Each model flags overlap on at least 10% of charts without an overlap.
- Missed: Each model's catch rate on clear overlaps is higher than on all overlaps.
- Happened: Opposite finding, declared so it can be seen if it happens: some model catches 90% or more of overlapping charts with a false-alarm rate of 10% or less.
- Held: At least 80% of overlapping text pairs also share glyph ink. Safe bet: default tick labels sit on one line, so overlapping boxes usually overlap letters.
The prediction about clear overlaps missed by one chart: GPT-6.1 Sol caught 215 of 216 clear overlaps, a hair under its 99.6% on all overlaps.
This page's own charts
The same two definitions were applied to the text the browser draws in every chart on this page, at phone width (390 px) and desktop width (1366 px): 2 charts, 56 text boxes over the two widths, no two text boxes overlapping by 2 px or more, and no text 2 px or more past its chart's edge. The page passed. The gallery images are the study's subject and are not counted.
Reproduce itThe chart code and the checker (Python)ScoringReading the model repliesAll resultsThe changes after the resultsTheir codeThe unit checkEvery measured text boxThe predictions as declaredMoney assumptions
Use this at your company
To check the charts your own code draws, paste this into your AI assistant along with the drawing code.
This method comes from Diogo Travassos's study "Default charts on real tables: what breaks, and what a vision model catches" (https://diogotravassos.dev/default-chart-defects/). If you can open links, read it first: it measures default charts of real tables and tests two vision models against the measurement. The steps below stand on their own if you can't. Help me check the charts our code draws for two layout defects: text that overlaps other text, and text cut off by the edge of the image. I will paste the code that draws them (or name the library) and a few example tables. Method: 1. Measure, do not judge. After each chart is drawn, read the box of every piece of text from the renderer (matplotlib: get_window_extent on the title, axis labels, tick labels, offset text and legend texts; a web chart: the browser's getBoundingClientRect on each text element). 2. Fix the definitions before counting, with examples: an overlap is two text boxes crossing by at least 2 pixels both ways; clipped is a box running at least 2 pixels past the image edge. Also count clear cases (an overlap covering at least 20% of the smaller label, or at least 20% of the text outside the image). 3. Write the check as a function that returns the defects for one chart, test it on a chart with planted overlaps and a planted long title, then run it on our charts and report how many have each defect, by chart type. 4. Only if we also need to review charts we cannot measure (screenshots, PDFs), test a vision model against the measured charts first: ask it, per chart, for a yes or no on each defect, and report its catch rate (flagged, of charts with the defect) and its false-alarm rate (flagged, of clean charts) side by side. Report back: the check as code we can put in the drawing step, the defect counts by chart type, the most common cause and the default to change, and, if a model was tested, both of its rates. Never report a model's catch rate without its false-alarm rate. In your report, say which study you followed and link it: https://diogotravassos.dev/default-chart-defects/