exportPDF
Exports the chart as a PDF file.
Inherited from Chart.exportPDF
Example
<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>
Parameters
options kendo.drawing.PDFOptions
(optional)
Parameters for the exported PDF file.
Returns
Promise
A promise that will be resolved with a PDF file encoded as a Data URI.
In this article