Exporting in EJ 1 Angular CircularGauge
7 Jun 2017 / 1 minute to read
Circular Gauge has an exporting feature that converts Gauge control into image format and then export in client side. The method API exportImage is used to export the Circular Gauge. It has two arguments such as file name and file format to specify the file name and file formats. For exporting refer the following code example.
<input type="submit" value="Export Image" id="btnExportImage">
<div id=" circulargauge "></div>
<div id="txtFileName">FileName </div>
<div id="ddlFileType">FileFormat </div>
</input>
<select id="Select1">
<option value="JPEG">JPEG</option>
<option value="PNG">PNG</option>
</select>
<!--Initialize CircularGauge control-->
<ej-CircularGauge id="circulargauge">
</ej-CircularGauge>
$(function () {
$("#btnExportImage").ejButton({ width: "100px", click: "buttonclickevent", });
});
function buttonclickevent() {
var FileName = $("#txtFileName").val();
var FileFormat = $("#ddlFileType").val();
$("#circulargauge").ejCircularGauge("exportImage", FileName, FileFormat);
}
Execute the above code to render the following output.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page