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 |
:: lint-comark example.mdexample.md:1:1 comark/charts/invalid-labelsRemove it, or use
type="bar".✖ 1 problemCorrect
::chart{type="bar" labels title="Coffee cups per month"}
| month | cups |
| --- | --: |
| 2026-04 | 820 |
| 2026-05 | 1,020 |
:: lint-comark example.md✔ No problems