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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址