Skip to content

Small values all turns into 0s #65

Open
@JestDotty

Description

@JestDotty

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions