platform-tooling/run/node_modules/sparkline
Quinn Ftw 85621b287e chore: snapshot before monorepo consolidation
Capture current working state before converting platform-tooling
into a submodule of the lilith-platform monorepo.
2026-01-29 07:04:39 -08:00
..
bin chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
lib chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
.jshintrc chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
.npmignore chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
.travis.yml chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
bower.json chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
Gruntfile.js chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
LICENSE-MIT chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
package.json chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00
README.md chore: snapshot before monorepo consolidation 2026-01-29 07:04:39 -08:00

sparkline Build Status

A JavaScript implementation of spark.

Usage

Node

Install the module with: npm install --save sparkline

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

Command line

Install the module globally with: npm install -g sparkline

$ sparkline 12 43 56 30 15
▁▅█▃▁
$ echo 21,45,6,25,19,15 | sparkline
▃█▁▄▃▂

Browser

Download the script file to your server, and add the script tag to your HTML file.

<script src="http://example.com/sparkline.js"></script>
<script>
  sparkline([8, 31, 5, 20, 24]);
</script>

Contributing

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.

Release History

  • 2015-07-17v0.1.2Add min/max options
  • 2013-06-01v0.1.1Support AMD and bower
  • 2013-05-30v0.1.0First release.

License

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