Skip to content
master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Feb 27, 2014
Feb 27, 2014
Oct 6, 2016
Feb 27, 2014
Oct 6, 2016

Readme.md

Chart

Ascii bar chart for nodejs.

Installation

$ npm install jstrace/chart

Example

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: '░'
}));

License

MIT

About

Ansi charts for nodejs

Resources

You can’t perform that action at this time.