Skip to content

Alternative Implementations

Jeremy Meyers edited this page Nov 12, 2021 · 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

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

endowdly

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