SASS Theme Builder
Sparklines / Binding to local data
Australia - Hourly Compensation Costs in Manufacturing /USD/
|Year||Compensation costs||Annual change %||Direct Pay||Benefit components|
The Kendo UI chart can be instructed to display data from local data storage via its DataSource property configuration. This is possible because of its built-in data-binding capabilities. In the example above the data for the chart is defined via a JSON array and assigned to the chart via the dataSource data attribute. Thus the chart fetches the data and displays its series values by setting their field properties to match the relevant data items attribute names in the source.
To instantiate a Kendo UI sparkline chart, you need to specify an empty span with an id on the page, select this div with a jQuery selector and invoke the kendoChart() function. As a result, the chart is registered as a standard jQuery plugin.
Additional information about how to utilize the data-binding capabilities of the Kendo UI chart widget can be found in this section of the product documentation.
- Widget configuration