Agentic Mermaid

What triggers it. Many or long category names under a vertical chart, where the axis thins its tick labels to avoid overlap or drops a category axis whose widest name does not fit; a bar whose value label fits neither inside the bar nor in the plot beyond its end; or a quadrant point whose label collides with labels placed before it. target says which, and labels lists exactly what is missing.

How to fix it. Shorten the category names, flip the chart with set_orientation {horizontal: true} so categories run down the side, or widen the value range so labels have room beyond the bars. For a quadrant chart, spread the points, shorten the names, or enlarge the chart.

Minimal reproducer

This source triggers LABELS_HIDDEN — checked at build time against the same engine the editor runs.

xychart-beta
  x-axis ["North region", "South region", "East region", "West region", "Central region", "Coastal region", "Mountain region", "Desert region", "Island region", "Border region"]
  bar [12, 18, 9, 22, 15, 11, 7, 5, 3, 8]

Open this reproducer in the editor

Run am verify diagram.mmd --json, inspect this code, and apply the smallest source or typed mutation that clears it. If it persists after two mechanical attempts, return the warning and ask for human review.

In the cloned repo, am is bun run bin/am.ts.

Machine-readable: this page as Markdown.

Back to all warning codes, or open a blank editor to try a fix.