The plugin is compatible with most modern browsers and has been tested with Firefox 2+, Safari 3+, Opera 9, Google Chrome and Internet Explorer 6, 7, 8 & 9 as well as iOS and Android.
Basic syntax of plugin is,
//Code Starts $(selector).sparkline(values, options); //Code Ends
A very basic example will be,
To create charts using this plugin, you need to take care of following things,
- A copy of jquery.sparkline.js loaded into the page which you can download from this site
- An inline tag on the page within which to display the sparkline (eg. <span> )
- A call to the sparkline() function to actually display the sparkline.
Feel free to contact me for any help related to jQuery, I will gladly help you.