Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabling "cvt_to_readable" #98

Open
ManiAm opened this issue Jul 9, 2022 · 2 comments
Open

disabling "cvt_to_readable" #98

ManiAm opened this issue Jul 9, 2022 · 2 comments

Comments

@ManiAm
Copy link

ManiAm commented Jul 9, 2022

Is there any ways to disable "cvt_to_readable": Return the number in a human readable format

It produces wrong numbers,

    args = {
        "stacked": False,
        "width": 50,
        "no_labels": False,
        "format": "{:>5.2f}",
        "suffix": " minutes",
        "vertical": False,
        "histogram": False,
        "no_values": False,
        "different_scale": False
    }

    chart(colors=[TERM_GRAPH_AVAILABLE_COLORS['blue']],
          data=data,
          args=args,
          labels=labels)

2022-07-09_0-27-22

where data is:

[
[0.42475755214691163],
[0.1093926469484965],
[0.04674157698949178],
[0.031145751476287842],
]

@gennaro-tedesco
Copy link

gennaro-tedesco commented Aug 9, 2022

I am having the same problem: essentially I have a file containing high precision numbers with many decimal places, and although the graph works correctly, the labels do not really show the numbers (or approximations thereof), rather conversions of them into some unit (as shown in the above screenshot).

I tried to specify the --format explicitly, but that only takes care of how many decimal places to carry with, leaving the display unit as they are.

This said, awesome library!

@pelillian
Copy link

+1 to this, would be very useful!

rjp added a commit to rjp/termgraph that referenced this issue Mar 14, 2023
Per mkaz#98, and for my own graphs, disabling "readable numbers" can make
a huge difference in readability to the graph.o

Adds an option `--no-readable` which presents numbers as-is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants