Esc

COMARK0432 · warning

comark/charts/invalid-line

Cross a chart with a line at a number on its value axis

An annotation with mark="line" crosses the plot at value, a number on the chart's value axis, written as the table writes its numbers. It crosses the whole plot, so it takes no at or series, and value does nothing without mark="line". Pies and gantts have no value axis to cross.

Incorrect

::chart{title="p95 per endpoint (ms)"}
| endpoint | p95 |
| --- | --: |
| /search | 410 |
| /login | 61 |
:::annotation{at="/search" mark="line" value="200 ms"}
The budget.
:::
::
md
lint-comark example.mdexample.md:1:1 comark/charts/invalid-line::chart 1, annotation 1: value="200 ms" isn't a number.Write the number alone, such as 200 or 1,200, in the unit of the chart's numbers.example.md:1:1 comark/charts/invalid-line::chart 1, annotation 1: a line crosses the whole plot at its value, so at doesn't apply.Remove it.✖ 2 problems

Correct

::chart{title="p95 per endpoint (ms)"}
| endpoint | p95 |
| --- | --: |
| /search | 410 |
| /login | 61 |
:::annotation{mark="line" value="200"}
The budget.
:::
::
md
lint-comark example.md✔ No problems