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

Destroy

methods

Prepares the Sparkline for safe removal from the DOM.

Detaches event handlers and removes data entries in order to avoid memory leaks.

<div id="sparkline"></div>
<script>
var sparkline = $("#sparkline").kendoSparkline({
    type: "column",
    series: [{
        data: [10, 15, 8, 12]
    }]
}).data("kendoSparkline");

sparkline.destroy();
</script>
Not finding the help you need?
Contact Support