You need to know two things:
$.sparkline_display_visible()
to actually display it
Eg.
// create an element and draw a sparkline var barchart = $('<span> </span>'); barchart.sparkline([1,2,3,2], {type: 'bar'}); // insert the element somewhere into the DOM $('#mycharts').append(barchart); // actually render any undrawn sparklines that are now visible in the DOM $.sparkline_display_visible();