Skip to content

Instantly share code, notes, and snippets.

@okovalov
Created February 11, 2020 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okovalov/e92ed41ccddca1e9744390adf3d96f41 to your computer and use it in GitHub Desktop.
Save okovalov/e92ed41ccddca1e9744390adf3d96f41 to your computer and use it in GitHub Desktop.
chart
{
"scripts": [],
"showConsole": true,
"scriptType": "module"
}
var asciichart = require ('asciichart')
var s0 = new Array (120)
for (var i = 0; i < s0.length; i++)
s0[i] = 15 * Math.sin (i * ((Math.PI * 4) / s0.length))
console.log (asciichart.plot (s0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment