weblog.masukomi.org

mah-soo-koh-me

 

Client-side sparklines December 12, 2006

Filed under: Uncategorized — masukomi @ 7:58 am

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