Esc

COMARK0431 · warning

comark/charts/invalid-labels

Put labels on bar and stacked bar charts

labels writes each value inside its bar or segment, or just past the bar's end where it doesn't fit, so it only applies to bar and stacked charts. Lines, areas, scatter plots, and pies have no bars to write on, and dumbbells, waterfalls, and gantts print their numbers already. Write it alone, with no value.

Incorrect

::chart{type="line" labels title="Coffee cups per month"}
| month | cups |
| --- | --: |
| 2026-04 | 820 |
| 2026-05 | 1,020 |
::
md
lint-comark example.mdexample.md:1:1 comark/charts/invalid-labels::chart 1: labels writes each value on its bar, and a line has no bars.Remove it, or use type="bar".✖ 1 problem

Correct

::chart{type="bar" labels title="Coffee cups per month"}
| month | cups |
| --- | --: |
| 2026-04 | 820 |
| 2026-05 | 1,020 |
::
md
lint-comark example.md✔ No problems