Wijmo UI for the Web
wijsparkline jQuery Widget
Displays small charts inline, useful in dashboards and grids.
Syntax
$(function () {
    var options; // Type:  wijmo.sparkline.wijsparkline.options
     
    $(".selector").wijsparkline(options);
});
function wijsparkline() : any;
Options
 NameDescription
public Option

The animation option defines the animation effect and controls other aspects of the widget's animation, such as duration and easing.

 
public Option

Default value: null

A value indicates that which property value is get from the object in the array if the data is set as a object array.

 
public Option

Default value: 10

Set width for each column

 
public Option

Default value: null

Sets the array to use as a source for data that you can bind to the sparkline widget.

 
public Option

Default value: false

Indicates whether the event handler of the sparkline widget is enable.

 
public Option

Default value: null

Sets the height of the sparkline widget in pixels.

 
public Option

Default value: null

A value that indicates the maximum value of the sparkline.

 
public Option

Default value: null

A value that indicates the minimum value of the sparkline.

 
public Option

Default value: null

Centers the value axis at the origin option setting value.

 
public Option

Default value: []

Creates an array of series objects that contain data values and labels to display in the chart.

 
public Option

Default value: []

Sets an array of style objects to use in rendering sparklines for each series in the sparkline widget.

 
public Option

Default value: null

A function which is used to get a value for the tooltip shown.

 
public Option

Default value: null

A value which formats the value for tooltip shown.

 
public Option

Default value: 'line'

Specifies the type of the sparkline widget.

 
public Option

Default value: false

Axis line as option (off by default) used for identifying negative or positive values.

 
public Option

Default value: null

Sets the width of the sparkline widget in pixels.

 
Top
Methods
 NameDescription
public MethodRemove the functionality completely. This will return the element back to its pre-init state.  
public MethodThis method redraws the chart.  
public MethodReturns a jQuery object containing the original element or other relevant generated element.  
Top
Events
 NameDescription
public EventThis event fires when the user clicks the sparkline.  
public EventThis event fires when the user moves the mouse pointer while it is over a sparkline.  
Top
See Also

Reference

wijsparkline jQuery Widget