Available in the Full Version

Sparkline - API and Events

The buttons and the viewer below them showcase some of igSparkline's methods 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.

Initially, the databinding and databound events fire; you can see the results of the addItem and removeItem methods by clicking the corresponding buttons.

Code View

Copy to Clipboard