Skip to content

Alternative Implementations

holman edited this page Nov 18, 2011 · 37 revisions

I initially wrote spark because I wanted to play around with shell and some of the finer points of UNIX. It's been awesome.

That said, there are plenty of other ways to do sparklines, much of them shorter and simpler because they can leverage higher-level language constructs. Cool!

For those of you interested in trying out different implementations, have at it. If you've whipped up something cool, add it to the list below!

C

"If your graph tool doesn't look like a graph, there's something wrong with it."
@tanoku: https://gist.github.com/1368661

"I rewrote it in C, so it's faster and can work more efficiently on different data sets. It also uses a prettier algorithm for determining heights. Have fun"
zx2c4

CoffeeScript

"A coffeescript, npm-ready version of the spark shell script."
@ajacksified and @brntbeer: https://github.com/ajacksified/Clark

Haskell

Javascript

Louis ("A javascript based data convertor to make text-like sparklines using the braille unicode block.")

PHP

php-spark
@ranza: https://github.com/ranza/php-spark

Powershell

jodrellblank

Python

spark.py
@kennethreitz: https://github.com/kennethreitz/spark.py

rogerallen (based on yycom)

Node.js / JavsScript

textspark
@msiebuhr: https://github.com/msiebuhr/node-textspark

Ruby

jcromartie

Java

java-spark

Clone this wiki locally