johnkerl / miller

Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
https://miller.readthedocs.io
Other
8.86k stars 212 forks source link

[feature request] ASCII bar charts #166

Open sjackman opened 6 years ago

sjackman commented 6 years ago

ASCII bar charts like the following example could be super useful:

Stats mean: 5975 median: 5975 sd: 1400 n: 304391601 min: 340 max: 11491
                   ___▁▁▁▂▂▃▄▄▅▅▆▆▇▇█████████▇▇▆▆▅▄▄▃▃▂▂▁▁____

Two use cases could be visualizing a histogram with mlr histogram or visualizing individual records like mlr bar.

johnkerl commented 5 years ago

See also

https://virtuallyfun.com/wordpress/2018/10/14/ttyplot-a-real-time-plotting-utility-for-the-terminal/

P.S. @sjackman, Dirk Eddelbuettel says hi ;)

sjackman commented 5 years ago

Hi, Dirk! =)

I'd still love to see this feature. A command to print a bar-chart histogram of each variable, one histogram per row, would be quite useful to me.