Esc

COMARK0415 · warning

comark/charts/too-few-series

Give a dumbbell two or more columns of numbers

A dumbbell joins two or more numbers in each row, such as a count before and after. With one column of numbers there's nothing to join, so the chart draws bars instead.

Incorrect

::chart{type="dumbbell" title="Ducks per pond"}
| pond | ducks |
| --- | --: |
| north | 12 |
| south | 7 |
| east | 9 |
::
md
lint-comark example.mdexample.md:1:1 comark/charts/too-few-series::chart 1: a dumbbell joins two or more columns of numbers per row, such as before and after, and this one has ducks.Add a column, or use type="bar".✖ 1 problem

Correct

::chart{type="dumbbell" title="Ducks per pond, spring and autumn"}
| pond | spring | autumn |
| --- | --: | --: |
| north | 12 | 15 |
| south | 7 | 6 |
| east | 9 | 11 |
::
md
lint-comark example.md✔ No problems