madnight / bitcoin-chart-cli

Bitcoin chart for the terminal as command line util
MIT License
305 stars 40 forks source link

Might need to add room for another digit. #9

Closed howardroark closed 6 years ago

howardroark commented 6 years ago

😜

madnight commented 6 years ago

Bitcoin chart past 90 days since 2017-09-09 10:56 pm. Current value: 15883.15 USD this is my bitcoin output, so prices above 10k works, but i guess you refer to something else, could you elaborate more?

bertrandom commented 6 years ago
6850.31 ┤                                                                                       ╭─╮
5878.37 ┤                                                                                       │ │
4906.42 ┤                                                                                       │ ╰
3934.48 ┤                                                                                      ╭╯
2962.53 ┤                                                                                      │
1990.59 ┤                                                                                   ╭──╯
1018.64 ┤                                                                                 ╭─╯
0046.69 ┤                                                                            ╭────╯
9074.75 ┤                                                                           ╭╯
8102.81 ┤                                                      ╭─╮ ╭╮      ╭────────╯
7130.86 ┤                                                  ╭───╯ ╰─╯╰──╮╭──╯
6158.91 ┤                               ╭──────────────────╯           ╰╯
5186.97 ┤                    ╭─╮   ╭────╯
4215.02 ┼───╮╭───────────────╯ ╰───╯
3243.08 ┤   ╰╯
    Bitcoin chart past 90 days since 2017-09-10 01:07 pm. Current 14493.32$ / 12374.03€.

The y-axis only shows four digits of precision, so you can't see the tens of thousands.

madnight commented 6 years ago

ah damnit, yes seems to be a limitation of the library https://github.com/kroitor/asciichart that is used to draw the chart, i'll open a issue over there. Thx for reporting

madnight commented 6 years ago

okay new version 3.1.2 is out, you can upgrade via: npm install -g bitcoin-chart-cli --upgrade

the digit precision and padding should be better now, report if you still face any issues

howardroark commented 6 years ago

Works great! Sorry for not being more specific, was just trying to be funny about the recent climb. Thanks @bertrandom :)