Esc

COMARK0404 · warning

comark/charts/too-few-columns

Give a chart's table an x column and a column of numbers

A chart needs the x values in one column and the numbers in at least one more. A table with one column has nothing to draw against, so the block shows the table alone.

Incorrect

::chart{title="Ducks counted"}
| ducks |
| --: |
| 12 |
| 7 |
| 9 |
::
md
lint-comark example.mdexample.md:1:1 comark/charts/too-few-columns::chart 1: its table needs at least two columns, the x values first and then the numbers.Change the block as the message says.✖ 1 problem

Correct

::chart{title="Ducks counted"}
| pond | ducks |
| --- | --: |
| north | 12 |
| south | 7 |
| east | 9 |
::
md
lint-comark example.md✔ No problems