Created
February 11, 2020 19:38
-
-
Save okovalov/e92ed41ccddca1e9744390adf3d96f41 to your computer and use it in GitHub Desktop.
chart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": [], | |
"showConsole": true, | |
"scriptType": "module" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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