JavaScript implementation of 'spark'.


JavaScript implementation of spark.

Install the module with: npm install --save sparkline

var sparkline = require('sparkline');
sparkline([1, 5, 22, 7, 9]);

Install the module globally with: npm install -g sparkline

$ 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.

<script src=""></script>
  sparkline([8, 31, 5, 20, 24]);

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

  • 2013-05-30 v0.1.0 First release.

Copyright (c) 2013 Shogo Iwano Licensed under the MIT license.