• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

guptarohit / asciigraph / 27907009380
93%

Build:
DEFAULT BRANCH: master
Ran 21 Jun 2026 02:13PM UTC
Jobs 1
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jun 2026 02:12PM UTC coverage: 93.117% (+0.5%) from 92.659%
27907009380

push

github

web-flow
feat: add ColorAbove/ColorBelow threshold coloring option (library + CLI) (#85)

Closes #38.

Adds value-based threshold coloring: highlight points that breach an
upper or
lower limit, regardless of which series they belong to.

## API

```go
asciigraph.Plot(data,
    asciigraph.ColorAbove(asciigraph.Red, 80),   // points above 80 → red
    asciigraph.ColorBelow(asciigraph.Green, 20), // points below 20 → green
)
```

- **`ColorAbove(color, threshold)`** colors points whose value is
**strictly above** `threshold`.
- **`ColorBelow(color, threshold)`** colors points whose value is
**strictly below** `threshold`.
- Bounds are **exclusive** (`>` / `<`), matching the literal meaning of
"above"/"below".
- Applies **across all series** (a single global threshold, not
per-series).
- **Precedence:** thresholds take precedence over `SeriesColorGradient`
and
`SeriesColors`; points in between keep their normal color. If a point
matches
both `ColorAbove` and `ColorBelow` (overlapping thresholds),
`ColorAbove` wins.

## CLI

```bash
seq 1 100 | asciigraph -h 10 -ca red,80 -cb green,20
```

- `-ca color,value` → color points above the value
- `-cb color,value` → color points below the value

---------

Co-authored-by: MihirMohapatra <kumarmihir79@gmail.com>
Co-authored-by: Rohit Gupta <rohitgtech+git@gmail.com>

19 of 19 new or added lines in 2 files covered. (100.0%)

690 of 741 relevant lines covered (93.12%)

1445.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go- - 27907009380.1 21 Jun 2026 02:13PM UTC 5
93.12
GitHub Action Run
Source Files on build 27907009380
  • Tree
  • List 5
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 73168771 on github
  • Prev Build on master (#27897859507)
  • Next Build on master (#27912059734)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc