Skip to content

comark/charts/invalid-horizontal

Put horizontal on bar and stacked bar charts

horizontal turns the bars of a bar or stacked chart sideways. Dumbbells and gantts always run sideways, and other types have no bars to turn. Write it alone, with no value.

Incorrect

Page weight (kB)
380400420440460480500520540homedocsbeforeafter
Data
pagebeforeafter
home412388
docs530470
::chart{type="dumbbell" horizontal title="Page weight (kB)"}
| page | before | after |
| --- | --: | --: |
| home | 412 | 388 |
| docs | 530 | 470 |
::
md

Correct

Page weight (kB)
380400420440460480500520540homedocsbeforeafter
Data
pagebeforeafter
home412388
docs530470
::chart{type="dumbbell" title="Page weight (kB)"}
| page | before | after |
| --- | --: | --: |
| home | 412 | 388 |
| docs | 530 | 470 |
::
md