Replies: 1 comment
-
I was also looking into
To render to file:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been mulling the idea of representing certain data in the
swarm
UI as bar charts.For comparison's sake, I was curious what CLI tools exist today to render bar charts in the terminal.
There is is a tool called
miller
(mlr
) that can output to (self-proclaimed "cheesy") bar charts. It can also compute histograms.Sadly, the version of
miller
(version6.0.0
) available on Ubuntu 22.04 has a bug in its histogram computation with--auto
, so I installed version6.12.0-dev
from source.First, computing a histogram of line counts of
.hs
source files:Next, appending a bar-chart rendering stage to the
mlr
command withthen
:The
#
character represents "out of bounds", given the resolution of the bar increments. We can suppress this indicator:Conclusions
Beta Was this translation helpful? Give feedback.
All reactions