A JavaScript implementation of 'spark'.
npm install sparklineA JavaScript implementation of spark.
Install the module with: npm install --save sparkline
``javascript`
var sparkline = require('sparkline');
sparkline([1, 5, 22, 7, 9]);
Install the module globally with: npm install -g sparkline
`shell`
$ sparkline 12 43 56 30 15
▁▅█▃▁
$ echo 21,45,6,25,19,15 | sparkline
▃█▁▄▃▂
Download the script file to your server, and add the script tag to your HTML file.
`html``