»
S
I
D
E
B
A
R
«
Client-side sparklines
December 12th, 2006 by masukomi

Ever wish you could have sparklines in your app without having to make another call to the server to generate a png/gif/svg/whatever image? Something that looked like these maybe?

Sparkline here:


Fat Sparkline here:


Unspaced sparkline here:


Unspaced fat sparkline here:


Those all have the same data, they’re just formatted differently.

The javascript is here: sparkline.js and the css is here: sparkline.css and this test example was implemented like this:

Much credit should go to TiddlyWiki for the original idea, which i then extracted, enhanced, and posted here for your enjoyment.


Leave a Reply

»  Substance: WordPress   »  Style: Ahren Ahimsa
© Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.