setDataSource

Sets the dataSource of an existing Chart and rebinds it.

Example

<div id="sparkline"></div>
<script>
var sparkline = $("#sparkline").kendoSparkline({
    type: "column"
}).data("kendoSparkline");

var dataSource = new kendo.data.DataSource({
    data: [
        { value: 10 },
        { value: 15 },
        { value: 8 },
        { value: 12 }
    ]
});

sparkline.setDataSource(dataSource);
</script>

Parameters

dataSource kendo.data.DataSource
In this article
setDataSource
Not finding the help you need?
Contact Support