Esc

COMARK0417 · warning

comark/charts/too-many-series

Draw one column in a pie or a waterfall

A pie divides one total and a waterfall walks one running sum, so each draws one column of numbers. With more, the chart draws only the first. Name the one to draw with y, or use bars to compare them.

Incorrect

::chart{type="pie" title="Ducks per pond"}
| pond | ducks | geese |
| --- | --: | --: |
| north | 12 | 3 |
| south | 7 | 5 |
| east | 9 | 2 |
::
md
lint-comark example.mdexample.md:1:1 comark/charts/too-many-series::chart 1: a pie shows one column of numbers, and this one has ducks and geese.Name one with y, or use type="bar".✖ 1 problem

Correct

::chart{type="pie" y="ducks" title="Ducks per pond"}
| pond | ducks | geese |
| --- | --: | --: |
| north | 12 | 3 |
| south | 7 | 5 |
| east | 9 | 2 |
::
md
lint-comark example.md✔ No problems