COMARK0430 · warning
comark/charts/too-many-groups
Color a gantt by one column of names
A gantt colors its bars by one column of names, such as a phase or a run, and names each color in a legend. With two such columns it colors by the first and leaves the other out of the chart. Keep one, and say the other in the task's name or in the text around the chart.
Incorrect
::chart{type="gantt" title="Pond cleanup (days)"}
| task | phase | crew | start | end |
| --- | --- | --- | --: | --: |
| drain the pond | prepare | ducks | 0 | 2 |
| fish out the shopping carts | clean | geese | 2 | 5 |
| refill | finish | ducks | 5 | 6 |
:: lint-comark example.mdexample.md:1:1 comark/charts/too-many-groupsKeep
phase, and move the others out of the table.✖ 1 problemCorrect
::chart{type="gantt" title="Pond cleanup (days)"}
| task | phase | start | end |
| --- | --- | --: | --: |
| drain the pond | prepare | 0 | 2 |
| fish out the shopping carts | clean | 2 | 5 |
| refill | finish | 5 | 6 |
:: lint-comark example.md✔ No problems