/termgraph

A very simple utility to print graphs in the terminal

Primary LanguageGo

Termgraph

A very simple utility to draw basic bargraphs in the terminal.

Author

Richard Fortescue-Webb, rfwebb.com

Example

$ ./termgraph test.csv

Info

This application was written in Golang as an exercise, it is not intended to be fully featured or idiomatically written. If you're looking for a practical solution the spark may be your best option.

Todo

This stuff will probably never happen but they might be useful

  • Make it terminal aware so that the default width is the current terminal width
  • Add vertical orientation in the style of sparklines
  • Add option for different colours
  • Add option for removing labels (needed for vertical orientation)
  • Make this into a library with an example application