Export
The Gauges deliver built-in support for Image, PDF, and SVG export.
The result is a Base64-encoded file that you can send to a service or save on the client by using the Kendo UI for Angular File Saver package.
The Gauges support the following export options:
- Exporting to an image
- Exporting to the Portable Document Format (PDF)
- Exporting to the Scalable Vector Graphics (SVG) image format
Exporting to Images
The exportImage
method from the Kendo UI for Angular Drawing library takes a visual element and produces an image file. To get the Gauge visual, use the exportVisual
method which returns a Promise that is resolved with the Gauge visual.
The following example demonstrates how to save the Gauges as a PNG image by using the exportImage
method.
Exporting to PDF
The exportPDF
method from the Kendo UI for Angular Drawing library takes a visual element and produces a PDF file. To get the Gauge visual, use the exportVisual
method which returns a Promise that is resolved with the Gauge visual.
The following example demonstrates how to save the Gauges as a PDF file by using the exportPDF
method.
Exporting to SVG
The exportSVG
method from the Kendo UI for Angular Drawing library takes a visual element and produces an image file. To get the Gauge visual, use the exportVisual
method which returns a Promise that is resolved with the Gauge visual.
The following example demonstrates how to save the Gauges as an SVG file by using the exportSVG
method.