exportImage

Exports the Gauge as an image. The result can be saved using kendo.saveAs.

The export operation is asynchronous and returns a promise. The promise will be resolved with a PNG image encoded as a Data URI.

Parameters

options Object (optional)Parameters for the exported image.
options.width StringThe width of the exported image. Defaults to the Gauge width.
options.height StringThe height of the exported image. Defaults to the Gauge height.

ReturnsPromise A promise that will be resolved with a PNG image encoded as a Data URI.

Example - Exporting a Gauge to an image

<div id="gauge"></div>
<script>
    $("#gauge").kendoRadialGauge({
        pointer: {
            value: 50
        },
        scale: {
            min: 0,
            max: 100
        }
    });

    var gauge = $("#gauge").data("kendoRadialGauge");
    gauge.exportImage().done(function(data) {
        kendo.saveAs({
            dataURI: data,
            fileName: "gauge.png"
        });
    });
</script>
In this article