chart

command module
v0.0.0-...-8510cca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

README

Data must always be a pipe separated string of integers and may come from either a file or an environment variable.

If more than 73 data points are included, only the final 73 data points will be displayed. This keeps the full chart within 80 characters.

Environment variable usage:

> $env:test = "23|20|15|12|12|15|15|6|5|0"
> chart -var test
 Chart scale is 5
 4.00 ┼ ╭─╮
 3.00 ┤ │ ╰╮ ╭─╮
 2.00 ┤ │  ╰─╯ │
 1.00 ┤ │      ╰─╮
 0.00 ┼─╯        ╰

Data file usage:

> ./chart -file .\example.csv
Chart scale is 2
 7.00 ┼               ╭─
 6.00 ┤             ╭─╯
 5.00 ┤           ╭─╯
 4.00 ┤         ╭─╯
 3.00 ┤       ╭─╯
 2.00 ┤     ╭─╯
 1.00 ┤   ╭─╯
 0.00 ┼───╯

Installation

go install github.com/edthedev/chart@latest

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL