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

ExportSVG

methods

Exports the chart as an SVG document.

Inherited from Chart.exportSVG

Returns:Promise

A promise that will be resolved with a SVG document encoded as a Data URI.

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

sparkline.exportSVG().then(function(dataURI) {
    // Display or save the SVG
    console.log(dataURI);
});
</script>
Not finding the help you need?
Contact Support