Skip to content

statistical is a tiny easy-to-use bash script for visualizing simple data in your terminal.

License

Notifications You must be signed in to change notification settings

noqqe/statistical

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

statistical

statistical is a tiny easy-to-use bash script collection for visualizing simple data in your terminal.

Usage

statistical is following a simple key:value scheme like in json or similar. Just add key:value pairs as parameters and watch the generic statistical graph.

$ h-barplot john:433 alice:49 linus:12 bob:231
$ v-barplot john:433 alice:49 linus:12 bob:231

h-barplot Examples

$ h-barplot john:433 alice:49 linus:12 bob:231 
john    |########################################### (433)
alice   |#### (49)
linus   |# (12)
bob     |####################### (231

Maybe a some more complex example. There is a bit bash magic :) statistical can read from stdin as well. So you can just pipe some formated informations into it like:

$ cd ~/Projects/githug
$ for a in $(git shortlog -sn --all | cut -f2 | cut -f1 -d' '); do echo -n \
"$a:" ; git log $LOGOPTS --all --numstat --format="%n" --author=$a | cut -f3 \
| sort -iu | wc -l; done  | h-barplot 
Gary      |###################### (226)
Robert    |## (22)
Dustin    |### (33)
Thameera  |### (37)
Anton     |## (26)
Al        |## (25)
Andrey    |#### (49)
mcramm    |#### (40)
wjk       | (2)

v-barplot Examples

The new v-barplot script does the same as h-barplot. It includes scaling for your terminal!

$ ./v-barplot foo:24 bar:90 alice:76 bob:32
90 |    ###         
87 |    ###         
84 |    ###         
81 |    ###         
78 |    ###         
75 |    ### ###     
72 |    ### ###     
69 |    ### ###     
66 |    ### ###     
63 |    ### ###     
60 |    ### ###     
57 |    ### ###     
54 |    ### ###     
51 |    ### ###     
48 |    ### ###     
45 |    ### ###     
42 |    ### ###     
39 |    ### ###     
36 |    ### ###     
33 |    ### ###     
30 |    ### ### ### 
27 |    ### ### ### 
24 |### ### ### ### 
21 |### ### ### ### 
18 |### ### ### ### 
15 |### ### ### ### 
12 |### ### ### ### 
 9 |### ### ### ### 
 6 |### ### ### ### 
 3 |### ### ### ### 
   |================
    foo bar ali bob 

showterm.io Example

showterm.io/0d0f510cb43b206350679

About

statistical is a tiny easy-to-use bash script for visualizing simple data in your terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages