kroitor / asciichart

Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS, browsers and terminal, no dependencies
MIT License
1.84k stars 94 forks source link

Allow static min and max via cfg #18

Closed snobu closed 5 years ago

snobu commented 5 years ago

Sometimes auto-scale is just not what you want, you can now just say:

cfg['minimum'] = 0
cfg['maximum'] = 100

and the scale stays fixed. This is useful when you stream data to plot().

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 81beeffcd7161f241e2762aa6dbd16b88ddcc11d on snobu:patch-1 into fe711d3a6287509029581fb942f0d881b86584e7 on kroitor:master.