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

Small values all turns into 0s #65

Open
JestDotty opened this issue Jun 22, 2021 · 0 comments
Open

Small values all turns into 0s #65

JestDotty opened this issue Jun 22, 2021 · 0 comments

Comments

@JestDotty
Copy link

reproducing:

const chart = require("asciichart")

const data = [
    [0, 0.1, 0.2, 0.3]
]
console.log('raw')
console.log(chart.plot(data))
console.log('turn into percents')
console.log(chart.plot(data.map(s=>s.map(v=>v*100 |0))))

output:
image

hm, bit steep

suggestion/request: setting the step size (or better automatic detection)

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

1 participant