chunqiuyiyu / ervy

Bring charts to terminal.
https://www.chunqiuyiyu.com/ervy/
MIT License
1.59k stars 45 forks source link

Redundant spaces for each call to ervy.bar function #7

Closed jcubic closed 5 years ago

jcubic commented 6 years ago

Check this code:

const ervy = require('ervy');

console.log(ervy.bar([
    { key: 'A', value: 30, style: ervy.bg('green') },
    { key: 'B', value: 10, style: ervy.bg('blue')},
    { key: 'C', value: 50, style: ervy.bg('red')}
]));
console.log(ervy.bar([
    { key: 'A', value: 30, style: ervy.bg('green') },
    { key: 'B', value: 10, style: ervy.bg('blue')},
    { key: 'C', value: 50, style: ervy.bg('red')}
]));

ervy

each time you call ervy.bar, next bar char is indented with one more additional space