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

Fix label padding for large numbers #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brdu
Copy link

@brdu brdu commented Dec 4, 2017

Add this code to test.js to reproduce

var s3 = []
for (var i = 0; i < width; i++)
    s3[i] = (2000 * Math.cos (i * ((Math.PI * 8) / width))) + 10000 // values range from 9000 to 11000
console.log (asciichart.plot (s3, { height: 10, width: 60 }))

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.2%) to 96.774% when pulling c1aef00 on brdu:bd_fix_labels into be5de29 on kroitor:master.

@kroitor
Copy link
Owner

kroitor commented Dec 5, 2017

Thank you very much for this commit! I'll merge it asap!

@kroitor kroitor self-assigned this Dec 5, 2017
@kroitor kroitor mentioned this pull request Dec 10, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants