Alternative Implementations

Jorge Bucaran edited this page Jan 9, 2015 · 36 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

C#

ahmetalpbalkan/Spark.NET — "spark implementation for your enterprise"

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

Fish shell

Shark. A simple and readable version in the user-friendly Fish shell.

Go

gospark

Groovy

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

Sparky

Haskell

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

ocharles' gist
@ocharles: ocharles

Java

java-spark
jspark

JavaScript

sparkly - Generate sparklines in Node.js or the browser.

"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

cl-spark: common-lisp implementation of spark and @LuRst's vspark with little extension.

Perl

parks

vspark: spark but with horizontal bars (prints in vertical)

Bar: spark but using regex to display the bar(s)

Term::Spark: Spark functionality as a Perl Package

Term::Vspark: vspark functionality as a Perl Package

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.