GitHub 42
Skip to content

comark/charts/invalid-better

Write better as higher or lower, on a heatmap

better colors a heatmap's cells from red through amber to green when its numbers rate something: better="higher" when a high number is good, such as a score, and better="lower" when a low one is, such as an error rate. Other charts have no cells to color.

Incorrect

Score per section
106.294.6featuresauthfirstsecond
Data
agentfeaturesauth
first106.2
second94.6
::chart{type="heatmap" better="more" title="Score per section"}
| agent | features | auth |
| --- | --: | --: |
| first | 10 | 6.2 |
| second | 9 | 4.6 |
::
md

Correct

Score per section
106.294.6featuresauthfirstsecond
Data
agentfeaturesauth
first106.2
second94.6
::chart{type="heatmap" better="higher" title="Score per section"}
| agent | features | auth |
| --- | --: | --: |
| first | 10 | 6.2 |
| second | 9 | 4.6 |
::
md