Skip to content

Alternative Implementations

nitram509 edited this page Mar 12, 2012 · 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

aspark
@antirez: https://github.com/antirez/aspark

"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

"A cleaner and more simple coffeescript implementation"
@afriggeri https://gist.github.com/1393845

Groovy

Including a script to always remotely run the last version from master @fix: https://github.com/fix/groovy-spark

Haskell

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

ocharles' gist
@ocharles: ocharles

Java

java-spark jspark

JavaScript

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

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

Lisp

A simple spark in common-lisp by @sunng87
clspark

PHP

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

Powershell

jodrellblank

Python

kennethreitz/spark.py - GitHub

rogerallen (based on yycom)

TextExpander sparkline snippet

Ruby

jcromartie

sparklinesquik — Gist by @Lri

Scala

spakle "sparkle in New York speak" by @softprops

Clone this wiki locally