Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    ascii-chartpublic

    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('ascii-chart');
    var clear = require('clear');
     
    var data = [1, 2, ...];
     
    clear();
    console.log(chart(data, {
      width: 130,
      height: 30,
      pointChar: '',
      negativePointChar: ''
    }));

    License

    MIT

    install

    npm i ascii-chart

    Downloadsweekly downloads

    29

    version

    1.3.3

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar