histo

beautiful charts in the terminal for static or streaming data

  • Owner: tj/histo
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Histo

Plot charts in the terminal with arbitrary streaming
or non-streaming data.

$ histo < data.txt

terminal histogram

Features

  • simple input via stdin
  • simple C API for integration in your tools
  • supports static or streaming data
  • adjusts to terminal width and height
  • adjusts x-axis labels to the integer size
  • negative values reflect as shaded blocks

Use-cases

  • cpu usage
  • memory usage
  • load averages
  • ...

Installation

With cpm:

$ cpm install visionmedia/histo

Or via git clone:

$ cd /tmp && git clone git://github.com/visionmedia/histo.git --depth 1 && cd histo && make install

Examples

histo(1) simply reads from stdin, so it works well with
streaming or non-streaming data, from any data source. This
repo includes some example files in ./examples, as well
as some example shell scripts for streaming input.

Static input

histo(1) simply reads from stdin, so it's easy to throw static
data at it for quick analysis:

1
4
5
12
8
15
18
20
5
2
1
5
2
10
2

Displayed with:

$ histo < example.txt

Dynamic input

You may stream data to histo(1) and tell it to quit with EOF,
for example here's a small shell script to generate some random
data:

while true; do
  echo $RANDOM
  sleep .5
done, histo

Screenshots

Negative values are shown as shaded blocks:

histogram with negative values

Adjusts properly to the size of the terminal:

size adjustment

tall

License

MIT

Main metrics

Overview
Name With Ownertj/histo
Primary LanguageC
Program languageShell (Language Count: 2)
Platform
License:
所有者活动
Created At2013-01-26 19:51:11
Pushed At2013-03-11 15:56:40
Last Commit At2013-03-11 08:56:31
Release Count2
Last Release Name0.0.2 (Posted on 2013-03-11 08:56:31)
First Release Name0.0.1 (Posted on )
用户参与
Stargazers Count694
Watchers Count26
Fork Count27
Commits Count38
Has Issues Enabled
Issues Count10
Issue Open Count6
Pull Requests Count2
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private