Edit this page

dataSource Object

DataSource configuration or instance.

Example

$("#sparkline").kendoSparkline({
    dataSource: {
        transport: {
             read: "spain-electricity.json"
        }
    },
    series: [{
        field: "value"
    }],
    categoryAxis: {
        field: "year"
    }
});

// Alternative configuration
var dataSource = new kendo.data.DataSource({
    transport: {
         read: "spain-electricity.json"
    }
});

$("#sparkline").kendoSparkline({
    dataSource: dataSource,
    series: [{
        field: "value"
    }],
    categoryAxis: {
        field: "year"
    }
});
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy