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

ExportPDF

methods

Exports the chart as a PDF file.

Inherited from Chart.exportPDF

Returns:Promise

A promise that will be resolved with a PDF file 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.exportPDF().then(function(dataURI) {
    // Download or display the PDF
    kendo.saveAs({
        dataURI: dataURI,
        fileName: "sparkline.pdf"
    });
});
</script>
Not finding the help you need?
Contact Support