Available in the Full Version

Sparkline > API and Events

$("#sparkline").igSparkline("addItem", item);
$("#sparkline").igSparkline("removeItem", 0);

This sample is designed for a larger screen size.

On mobile, try rotating your screen, view full size, or email to another device.

The buttons and viewer below showcase some of igSparkline's methods and events. Initially, the databinding and databound events fire and you can see the results of the 'addItem' and 'removeItem' methods by clicking the corresponding buttons.

Code View

Copy to Clipboard