Esc

COMARK0411 · warning

comark/charts/non-numeric-value

Write chart values as plain numbers

Every column the chart draws holds plain numbers, with commas between thousands if you like, such as 1,200. A cell with a unit or a word in it isn't read, so that bar or point is left out. Put the unit in the header instead.

Incorrect

::chart{title="Ducks per pond"}
| pond | ducks |
| --- | --: |
| north | 12 ducks |
| south | 7 |
| east | 9 |
::
md
lint-comark example.mdexample.md:1:1 comark/charts/non-numeric-value::chart 1: row 1 has 12 ducks in ducks, which isn't a number.Write the number alone, such as 1200 or 1,200, and put the unit in the header, such as ducks (ms).✖ 1 problem

Correct

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