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."
zx2c4: http://git.zx2c4.com/spark/tree/spark.c

CoffeeScript

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

Haskell

spark.hs
@Mgccl: https://github.com/Mgccl/mgccl-haskell/blob/master/random/spark.hs

ocharles' gist
@ocharles: ocharles

Java

java-spark

JavaScript

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

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

Clone this wiki locally