Very nice. The agate library (by the same author of csvkit) also prints out text charts, though I don't think it has a CLI: http://agate.readthedocs.io/en/1.6.1/
A similar idea is used in UnicodePlots [1], a Julia terminal plotting library. This kind of tools is very useful when you are connected to some HPC cluster and want to have a quick look at the contents of data files.
Of course, the approach is quite different, as Termgraph seems a stand-alone program, while UnicodePlots is a library.
I love this. It feels like a solution to a problem I never knew I had. I'm a very visual thinker, and there have been so many times where I wish I could summarize a volume of data into graphs without loading up Sheets.
You might want to try VisiData (https://visidata.org), for visual terminal-based exploration of data. Everyone loves the 'Shift+F' Frequency Table with histogram. Can also do scatter plots, filtering, transformation, and export.
There are so many unofficial escape sequences for rendering images in modern terminal emulators. Kitty has one, as does Terminology and iTerm (both different from each other). Then there is stuff like Sixel (supported by xterm), ReGIS (also supported by xterm but it's horrible to use) and other methods from VTs of old.
I really wish there was just one standard way to render images on the terminal (like there is one standard for rendering hyperlinks on the terminal), but there's an XKCD sketch somewhere about creating a standard to consolidate standards.
This is cool! Not sure why it's not in the docs, but iTerm 2 > Install Shell Integration will do this for you, if you let it install the Utilities too.
Although the image would open separately from the terminal window, Termgraph is cool and I might extend RESTcharts (https://github.com/whatl3y/restcharts) to support a CLI mode that would generate an image of a chart based on an input file, then open the image after it's created on the file system.
I actually wrote one of these myself years ago. I never finished it up for general use because I thought "someone must have done this already" so I just left it as a "util" buried in some project. I always seem to think the same thing.
we all do - the difference is moving from scratching your itch to advertising your itch scratcher- find another one of your projects and show HN - worst case, you get to polish up some code
https://github.com/kroitor/asciichart (JS, Py)
https://github.com/guptarohit/asciigraph (Go)
https://github.com/madnight/asciichart (Haskell)