asciichart icon indicating copy to clipboard operation
asciichart copied to clipboard

Small values all turns into 0s

Open JestDotty opened this issue 3 years ago • 0 comments

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)

JestDotty avatar Jun 22 '21 05:06 JestDotty