A sparkline widget.

Type: Object

The dxSparkline widget represents a small chart that contains only one series. Due to its size, the data represented by a sparkline is visualized in a highly condensed way. Since sparklines are compact, they are usually placed in a table or embedded in text.

The dxSparkline widget, like any other ChartJS widget, can be created using one of three possible approaches: jQuery, Knockout or AngularJS. The following code demonstrates how to create the dxSparkline widget within the "sparklineContainer" container using the jQuery approach.

  $(function () {
      //Options of the configuration object are specified here

To configure the dxSparkline widget, pass a configuration object as the parameter of the constructor. The fields of this object represent the widget configuration options. To specify these options, set the required values to the corresponding fields. Refer to the Configuration section to find the options that can be specified for the dxSparkline widget.

View Demo Watch Video


An object that specifies configuration options for the dxSparkline widget.


This section describes the methods that can be used in code to manipulate objects related to the dxSparkline widget.