New to Kendo UI for jQuery? Start a free 30-day trial

Sets the dataSource of an existing Chart and rebinds it.

Parameters:dataSourcekendo.data.DataSource
<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>
Not finding the help you need?
Contact Support