Ascii bar chart for nodejs.
$ npm install jstrace/chart
When data
exceeds the available width the data will "roll" to the tail-end
of the array. This may become an option in the future, but that's the default
behaviour for now ;)
var chart = require('chart');
var clear = require('clear');
var data = [1, 2, ...];
clear();
console.log(chart(data, {
width: 130,
height: 30,
pointChar: '█',
negativePointChar: '░'
}));
MIT