Posted by few on Sparky – A JavaScript Sparklines Library
Sparklines, the tiny charts that can be used near a sentence, headline, graphic.., are very handy for visualizing data inside the content.
Sparky is a free JavaScript sparklines library that depends on Raphaël and very easy to use.
It has support for multiple chart types (line, bar and area) where line + area charts can have multiple colors as well.
The usage is very straightforward; just create an HTML element (preferably <span>
for inline use) and provide the values as an array with a data
attribute. And, define the settings (width, height, colors, padding, etc.) with a JS function.
The post Sparky – A JavaScript Sparklines Library appeared first on TOSDN.