GitHub 42
Skip to content

comark/charts/invalid-log

Put log on a line, scatter plot, or bar chart whose numbers are all above 0

log puts numbers that span orders of magnitude on a log scale: alone for the numbers' axis, log="x" for the x column of a line or a scatter plot over numbers, or log="both". Lines, scatter plots, and bar charts take it. A log scale has no zero, so stacks, areas, and pies, whose parts add up from zero, can't use one, and every number on a log axis must be above 0.

Incorrect

Time to first reply (h)
Sep 7Sep 1400.20.40.60.811.2median
Data
weekmedian
2026-09-071.2
2026-09-140
::chart{type="line" log title="Time to first reply (h)"}
| week | median |
| --- | --: |
| 2026-09-07 | 1.2 |
| 2026-09-14 | 0 |
::
md

Correct

Time to first reply (h)
Sep 7Sep 140.51median
Data
weekmedian
2026-09-071.2
2026-09-140.6
::chart{type="line" log title="Time to first reply (h)"}
| week | median |
| --- | --: |
| 2026-09-07 | 1.2 |
| 2026-09-14 | 0.6 |
::
md