Babar

babar

Draw bar charts in your console.

193 lines of code to get bar charts on your console!

Easy to use, lightweight, color output, ASCII output, automatically bucketizes values (currently only averages values in a bucket).

Get it: npm install babar

Sample usage:

1
2
var babar = require('babar');
console.log(babar([[0, 1], [1, 5], [2, 5], [3, 1], [4, 6]]));
1
2
3
4
5
6
7
8
9
var babar = require('babar');

console.log(babar([[0, 1], [1, 5], [2, 5], [3, 1], [4, 6]], {
  color: 'green',
  width: 40,
  height: 10,
  maxY: 10,
  yFractions: 1
}));

GIF FTW!

babar

Suggest a module

Comments